diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /656/CH1/EX1.7 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '656/CH1/EX1.7')
-rw-r--r-- | 656/CH1/EX1.7/example1_7.pdf | bin | 0 -> 11334 bytes | |||
-rw-r--r-- | 656/CH1/EX1.7/example1_7.sce | 79 |
2 files changed, 79 insertions, 0 deletions
diff --git a/656/CH1/EX1.7/example1_7.pdf b/656/CH1/EX1.7/example1_7.pdf Binary files differnew file mode 100644 index 000000000..4475ecff4 --- /dev/null +++ b/656/CH1/EX1.7/example1_7.pdf diff --git a/656/CH1/EX1.7/example1_7.sce b/656/CH1/EX1.7/example1_7.sce new file mode 100644 index 000000000..fc378d99a --- /dev/null +++ b/656/CH1/EX1.7/example1_7.sce @@ -0,0 +1,79 @@ +//For p1, the 5-A current is out of the positive terminal (or into the negative terminal hence,
+
+// power(p) in watts is given by p=V*I
+
+// v voltage in volts and i current in Amperes
+
+p1=20*-5;
+
+disp("p1=")
+disp(p1)
+units='Watts W'
+p1=[string(p1) units];
+disp(p1)
+
+// in watts
+
+
+// power in p1 is -100w ie. the supplied power
+
+//For p2 and p3, the current flows into the positive terminal of the element in each case. hence,
+
+p2=12*5;
+
+disp("p2=")
+disp(p2)
+units='Watts W'
+p2=[string(p2) units];
+disp(p2)
+
+// in watts
+
+
+// p2 is 60w absorbed power
+
+p3=8*6;
+
+disp("p3=")
+disp(p3)
+units='Watts W'
+p3=[string(p3) units];
+disp(p3)
+
+// in watts
+
+
+// p3 is absorbed power
+
+//For p4,we should note that the voltage is 8V(positive at the top), the same as the voltage for p3, since both the passive element and the dependent source are connected to the same terminals.
+
+// i current is 5A
+
+p4=8*(-0.2*5);
+
+disp("p4=")
+disp(p4)
+units='Watts W'
+p4=[string(p4) units];
+disp(p4)
+
+// in watts
+
+
+// p4 is -8w supplied power
+
+// now...
+p1=-100;
+p2=60;
+p3=48;
+p4=-8;
+
+p0=p1+p2+p3+p4;
+disp(p0)
+
+disp("W")
+// in watts W
+
+// this shows that total power supplied equals total power absorbed.
+
+
|