summaryrefslogtreecommitdiff
path: root/2534/CH5/EX5.13/Ex5_13.sce
diff options
context:
space:
mode:
Diffstat (limited to '2534/CH5/EX5.13/Ex5_13.sce')
-rwxr-xr-x2534/CH5/EX5.13/Ex5_13.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2534/CH5/EX5.13/Ex5_13.sce b/2534/CH5/EX5.13/Ex5_13.sce
new file mode 100755
index 000000000..50006dec8
--- /dev/null
+++ b/2534/CH5/EX5.13/Ex5_13.sce
@@ -0,0 +1,13 @@
+//Ex5_13
+clc
+Vdc = 32
+Vm = %pi*Vdc/2
+Vrms = Vm/(2^.5)
+PIV = Vm
+disp("Vdc = "+string(Vdc)+"V")//D.C. voltage
+disp("Vm = pi*Vdc/2 = "+string(Vm)+"V")//peak voltage
+disp("Vrms = Vm/(2^.5) = "+string(Vrms)+"V")//rms voltage
+disp("PIV = "+string(PIV)+"V")//peak inverse voltage
+
+
+// note : value calculated for Vrms in the textbook is wrong.