summaryrefslogtreecommitdiff
path: root/3673/CH1/EX1.12/Ex1_12.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3673/CH1/EX1.12/Ex1_12.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3673/CH1/EX1.12/Ex1_12.sce')
-rw-r--r--3673/CH1/EX1.12/Ex1_12.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3673/CH1/EX1.12/Ex1_12.sce b/3673/CH1/EX1.12/Ex1_12.sce
new file mode 100644
index 000000000..6aaf038a7
--- /dev/null
+++ b/3673/CH1/EX1.12/Ex1_12.sce
@@ -0,0 +1,19 @@
+//Example 1_12 page no:14
+clc
+R1=5;//Resistance in ohm
+R2=2;//Resistance in ohm
+R3=1;//Resistance in ohm
+R4=2;//Resistance in ohm
+V=50;//supply voltage
+Rt=R1+R2+R3+R4;//total resistance
+P=V*V/Rt;//calculating total power
+disp(P,"Total power in the circuit (in watts)")
+current=V/Rt;
+P1=current^2*R1;
+disp(P1,"power absorbed in 5 ohms (in watts)")
+P2=current^2*R2;
+disp(P2,"power absorbed in 2 ohms (in watts)")
+P3=current^2*R3;
+disp(P3,"power absorbed in 1 ohms (in watts)")
+P4=current^2*R4;
+disp(P4,"power absorbed in 2 ohms (in watts)")