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 /1319/CH1/EX1.8 | |
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 '1319/CH1/EX1.8')
-rw-r--r-- | 1319/CH1/EX1.8/1_8.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/1319/CH1/EX1.8/1_8.sce b/1319/CH1/EX1.8/1_8.sce new file mode 100644 index 000000000..08a8dd069 --- /dev/null +++ b/1319/CH1/EX1.8/1_8.sce @@ -0,0 +1,22 @@ +//To find the current and impedance and admittance of the circuit
+
+clc;
+clear;
+
+R=25;
+Xl=50*%i;
+Z1=R+Xl;
+
+Z2=-40*%i;
+
+V=100;
+
+Zeq=(Z1*Z2)/(Z1+Z2);
+
+Y=1/Zeq;
+
+I=V*Y;
+
+mprintf('The Current of the circuit = %f /_ %f A \n',abs(I),atand(imag(I)/real(I)))
+mprintf('The Impedance of the circuit = %f /_ %f ohms \n',abs(Zeq),atand(imag(Zeq)/real(Zeq)))
+mprintf('The Admittance of the circuit = %f /_ %f siemens \n',abs(Y),atand(imag(Y)/real(Y)))
|