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 /3673/CH5/EX5.6/Ex5_6.sce | |
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 '3673/CH5/EX5.6/Ex5_6.sce')
-rw-r--r-- | 3673/CH5/EX5.6/Ex5_6.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/3673/CH5/EX5.6/Ex5_6.sce b/3673/CH5/EX5.6/Ex5_6.sce new file mode 100644 index 000000000..8cb8394e4 --- /dev/null +++ b/3673/CH5/EX5.6/Ex5_6.sce @@ -0,0 +1,23 @@ +//Example 5_6 page no:196
+clc
+V=50;
+R=10;//resistance in ohm
+L=0.5;//inductance in henry
+C=10*10^-6//capacitance in farad
+f=50//frequency in Hz
+Xc=1/(2*3.14*f*C)
+Xl=2*3.14*f*L
+Z=sqrt(R^2+(Xl-Xc)^2)
+disp(Z,"the impedence is (in ohm)")
+I=V/Z
+disp(I,"current is (in A)")
+angle=atand((Xl-Xc)/R)
+disp(angle,"the phase angle is (in degree)")
+Vr=I*R
+disp(Vr,"voltage across resistor is (in volt)")
+Vc=I*Xc
+disp(Vc,"voltage across capacitive reactance is (in volt)")//current is round of to 0.3A in our case it is 0.309 so the result is more approximated in textbook
+disp("in textbook the current is roundoff so the voltage is more approximated")
+Vl=I*Xl
+disp(Vl,"voltage across inductive reactance is (in volt)")//current is round of to 0.3 in our case it is 0.309 so the result is more approximated in textbook
+disp("in textbook the current is roundoff so the voltage is more approximated")
|