summaryrefslogtreecommitdiff
path: root/1430/CH7/EX7.1/exa7_1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1430/CH7/EX7.1/exa7_1.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 '1430/CH7/EX7.1/exa7_1.sce')
-rw-r--r--1430/CH7/EX7.1/exa7_1.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/1430/CH7/EX7.1/exa7_1.sce b/1430/CH7/EX7.1/exa7_1.sce
new file mode 100644
index 000000000..b3b3db530
--- /dev/null
+++ b/1430/CH7/EX7.1/exa7_1.sce
@@ -0,0 +1,21 @@
+// Example 7.1
+// AC Power Calculations
+// From Example 6.8 we already found that,
+Z=complex(4.8,6.4);
+V_m=80;
+V_c_m=40;
+I_m=10*10^-3;
+// The total average power supplied by the source is,
+R_omega=4.8*10^3;
+R1=40*10^3;
+R2=5*10^3;
+P=0.5*R_omega*I_m^2; // Average Power
+// This power is actually dissipated by 40kohm and 5kohm resistor
+P_R1= V_m^2/(2*R1);
+P_R2=V_c_m^2/(2*R2);
+disp(P,"Total Average Power Dissipation(in Watt)=")
+disp(P_R1,"Power dissipated across 40kohm(in Watt)=")
+disp(P_R2,"Power dissipated across 5kohm(in Watt)=")
+if P==(P_R1+P_R2) then
+disp("This shows average power dissipation in the due to all resistors")
+end