summaryrefslogtreecommitdiff
path: root/2672/CH3/EX3.2/Ex3_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '2672/CH3/EX3.2/Ex3_2.sce')
-rwxr-xr-x2672/CH3/EX3.2/Ex3_2.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2672/CH3/EX3.2/Ex3_2.sce b/2672/CH3/EX3.2/Ex3_2.sce
new file mode 100755
index 000000000..94596c1f8
--- /dev/null
+++ b/2672/CH3/EX3.2/Ex3_2.sce
@@ -0,0 +1,19 @@
+//Example 3_2
+clc;
+clear;
+close;
+format('v',5);
+//given data :
+//v=150*sin(100*%pi*t)
+R=50;//ohm
+Vm=150;//V
+omega=100*%pi;//
+f=omega/2/%pi;//Hz
+Vrms=Vm/2;//V
+Vav=Vm/%pi;//V
+Irms=Vm/2/R;//A
+disp(Irms,"rms value of current (A)");
+Iav=Vm/%pi/R;//A
+disp(Iav,"Average value of current (A)");
+Kf=Irms/Iav;//Form Factor
+disp(Kf,"Form Factor")