summaryrefslogtreecommitdiff
path: root/1991/CH8/EX8.15/15.sce
diff options
context:
space:
mode:
Diffstat (limited to '1991/CH8/EX8.15/15.sce')
-rwxr-xr-x1991/CH8/EX8.15/15.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1991/CH8/EX8.15/15.sce b/1991/CH8/EX8.15/15.sce
new file mode 100755
index 000000000..2f0573645
--- /dev/null
+++ b/1991/CH8/EX8.15/15.sce
@@ -0,0 +1,9 @@
+clc
+clear
+//input
+v=14 //voltage
+//calculation
+v0=v*sqrt(2)//rms value
+//output
+printf("rms value of ac is 14 V")
+printf("\n the peak value of ac is %3.3f V",v0)