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 /2384/CH4/EX4.11 | |
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 '2384/CH4/EX4.11')
-rwxr-xr-x | 2384/CH4/EX4.11/ex4_11.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/2384/CH4/EX4.11/ex4_11.sce b/2384/CH4/EX4.11/ex4_11.sce new file mode 100755 index 000000000..f9dc7b0ec --- /dev/null +++ b/2384/CH4/EX4.11/ex4_11.sce @@ -0,0 +1,25 @@ +// Exa 4.11
+clc;
+clear;
+close;
+format('v',7)
+// Given data
+V = 230;// in V
+f = 50;// in Hz
+L = 0.06;// in H
+R = 2.5;// in ohm
+C = 6.8;// in µF
+C = C * 10^-6;// in F
+X_L = 2*%pi*f*L;// in ohm
+X_C = 1/(2*%pi*f*C);// in ohm
+Z = sqrt( (R^2) + ((X_L-X_C)^2) );// in ohm
+disp(Z,"The impedance in ohm is");
+I = V/Z;// in A
+disp(I,"The current in A is");
+// tan(phi) = (X_L-X_C)/R;
+phi = atand( (X_L-X_C)/R );// in lead
+disp("The phase angle between current and voltage is : "+string(abs(phi))+" lead");
+phi = acosd(R/Z);
+disp("The power factor is : "+string(cosd(phi))+" lead");
+P = V*I*cosd(phi);// in W
+disp(P,"The power consumed in W is");
|