summaryrefslogtreecommitdiff
path: root/2672/CH3/EX3.18/Ex3_18.sce
diff options
context:
space:
mode:
Diffstat (limited to '2672/CH3/EX3.18/Ex3_18.sce')
-rwxr-xr-x2672/CH3/EX3.18/Ex3_18.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/2672/CH3/EX3.18/Ex3_18.sce b/2672/CH3/EX3.18/Ex3_18.sce
new file mode 100755
index 000000000..c3cd4dcfb
--- /dev/null
+++ b/2672/CH3/EX3.18/Ex3_18.sce
@@ -0,0 +1,25 @@
+//Example 3_18
+clc;
+clear;
+close;
+format('v',6);
+//given data :
+//v=100*sin(314*t)
+//i=10*sin(314*t-%pi/6)
+Vm=100;//V
+omega=314;//rad/s
+V=Vm/sqrt(2);//V
+f=omega/2/%pi;//Hz
+Im=10;//A
+I=Im/sqrt(2);//A
+fi=%pi/6;//radian
+pf=cos(fi);//power factor
+disp(pf,"Power Factor(Lagging)");
+P=V*I*cos(fi);//W
+disp(P,"Powe Consumed(W)");
+Z=V/(I*expm(%i*-fi));//ohm
+R=real(Z);//ohm
+disp(R,"Value of R(ohm)");
+XL=imag(Z);//ohm
+L=XL/2/%pi/f*1000;//mH
+disp(L,"Value of L(mH)");