summaryrefslogtreecommitdiff
path: root/3673/CH5/EX5.7
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3673/CH5/EX5.7
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/CH5/EX5.7')
-rw-r--r--3673/CH5/EX5.7/Ex5_7.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/3673/CH5/EX5.7/Ex5_7.sce b/3673/CH5/EX5.7/Ex5_7.sce
new file mode 100644
index 000000000..9d02a03fe
--- /dev/null
+++ b/3673/CH5/EX5.7/Ex5_7.sce
@@ -0,0 +1,23 @@
+//Example 5_7 page no:197
+clc
+V=20;
+f=5*10^3;//frequency in Hz
+R=100;
+C=0.2*10^-6//capacitance in farad
+Xc=1/(2*%pi*f*C)
+Ir=V/R
+disp(Ir,"current in the resistance branch is (in A)")
+Ic=V/Xc
+disp(Ic,"current in the capacitive branch is (in A)")
+It=Ir+(%i*Ic)
+disp(It,"total current is (in A)")
+[It_polar,Theta]=polar(It)
+Theta=atand(Ic/Ir)
+Z_mag=V/It_polar
+Z_ang=0-Theta;
+disp(It_polar,"the magnitude of current is (in A)")
+disp(Theta,"the angle of current is (in degree)")
+disp(Z_mag,"the magnitude of total impedance is (in ohm)")
+disp(Z_ang,"the angle of total impedance is (in degree)")
+disp("the values varies slightly with text book hence values are rounded off in text book")
+//the values varies slightly with text book hence values are rounded off in text book