summaryrefslogtreecommitdiff
path: root/1523/CH4/EX4.5/ex4_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '1523/CH4/EX4.5/ex4_5.sce')
-rwxr-xr-x1523/CH4/EX4.5/ex4_5.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1523/CH4/EX4.5/ex4_5.sce b/1523/CH4/EX4.5/ex4_5.sce
new file mode 100755
index 000000000..ac8a2dce3
--- /dev/null
+++ b/1523/CH4/EX4.5/ex4_5.sce
@@ -0,0 +1,13 @@
+//AC Circuits : example 4.5 :(pg 4.6)
+kf=1.2;
+kp=1.5;
+Vavg=10;
+disp("kf=1.2");
+disp("kp=1.5");
+disp("Vavg=10");
+disp("form factor kf=(Vrms/Vavg)");
+Vrms=(kf*Vavg);
+printf("\nVrms=%.f V",Vrms);
+disp("peak factor kp=(Vm/Vrms)");
+Vm=(kp*Vrms);
+printf("\nVm=%.f V",Vm); \ No newline at end of file