diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /608/CH25/EX25.02/25_02.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '608/CH25/EX25.02/25_02.sce')
-rwxr-xr-x | 608/CH25/EX25.02/25_02.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/608/CH25/EX25.02/25_02.sce b/608/CH25/EX25.02/25_02.sce new file mode 100755 index 000000000..40de96e79 --- /dev/null +++ b/608/CH25/EX25.02/25_02.sce @@ -0,0 +1,19 @@ +//Problem 25.02: Determine expressions for the impedance of the following admittances: (a)0.004/_30°S (b) (0.001-i0.002)S (c)(0.05 + i0.08)S
+
+//initializing the variables:
+Y2 = 0.001 - %i*0.002; // in S
+Y3 = 0.05 + %i*0.08; // in S
+r1 = 0.004; // in S
+theta1 = 30; // in degrees
+
+//calculation:
+//impedance, Z
+Z2 = 1/Y2
+Z3 = 1/Y3
+Y1 = r1*cos(theta1*%pi/180) + %i*r1*sin(theta1*%pi/180)
+Z1 = 1/Y1
+
+printf("\n\n Result \n\n")
+printf("\n (a)Impedance,Z is (%.1f + (%.0f)i) ohm ",real(Z1), imag(Z1))
+printf("\n (b)Impedance,Z is (%.0f + (%.0f)i) ohm ",real(Z2), imag(Z2))
+printf("\n (c)Impedance,Z is (%.2f + (%.2f)i) ohm ",real(Z3), imag(Z3))
\ No newline at end of file |