summaryrefslogtreecommitdiff
path: root/3673/CH1/EX1.a.21
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.a.21
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.a.21')
-rw-r--r--3673/CH1/EX1.a.21/Example_a_1_21.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3673/CH1/EX1.a.21/Example_a_1_21.sce b/3673/CH1/EX1.a.21/Example_a_1_21.sce
new file mode 100644
index 000000000..3e27b887b
--- /dev/null
+++ b/3673/CH1/EX1.a.21/Example_a_1_21.sce
@@ -0,0 +1,18 @@
+//Example 1_21 page no:36
+clc;
+R1=3;
+R2=2;
+V=12/((1/3)+1+(1/2));
+i3=V/R1;
+i2=-V/R2;
+P3=V*i3;
+disp(P3,"the power absorbed by P3 is (in W)");
+P12=-V*12;
+disp(P12,"the power absorbed by 12A current source is (in W)");
+P2i=-V*2*i2;
+disp(P2i,"the power absorbed by 2i dependent current source is (in W)");
+P2=-V*i2;
+disp(P2,"the power absorbed by 2 ohm resistor is (in W)");
+//the result displayed varies slightly with the text book hence in text book
+//V,i3,i2 values are rounded off and they produce approximated result
+//here the values are used directly without approxiamtion