summaryrefslogtreecommitdiff
path: root/608/CH14/EX14.08/14_08.sce
diff options
context:
space:
mode:
Diffstat (limited to '608/CH14/EX14.08/14_08.sce')
-rwxr-xr-x608/CH14/EX14.08/14_08.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/608/CH14/EX14.08/14_08.sce b/608/CH14/EX14.08/14_08.sce
new file mode 100755
index 000000000..6153070da
--- /dev/null
+++ b/608/CH14/EX14.08/14_08.sce
@@ -0,0 +1,13 @@
+//Problem 14.08: A supply voltage has a mean value of 150 V. Determine its maximum value and its rms value
+
+//initializing the variables:
+Vmean = 150; // in Volts
+
+//calculation:
+//for a sine wave
+Vmax = Vmean/0.637
+Vrms = 0.707*Vmax
+
+printf("\n\n Result \n\n")
+printf("\n peak value = %.1f V",Vmax)
+printf("\n rms value = %.1f V",Vrms) \ No newline at end of file