summaryrefslogtreecommitdiff
path: root/1523/CH4/EX4.15/ex4_15.sce
diff options
context:
space:
mode:
Diffstat (limited to '1523/CH4/EX4.15/ex4_15.sce')
-rwxr-xr-x1523/CH4/EX4.15/ex4_15.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1523/CH4/EX4.15/ex4_15.sce b/1523/CH4/EX4.15/ex4_15.sce
new file mode 100755
index 000000000..82e36138f
--- /dev/null
+++ b/1523/CH4/EX4.15/ex4_15.sce
@@ -0,0 +1,11 @@
+//AC Circuits : example 4.15 :pg(4.11 & 4.12)
+v1=0;
+v2=10;
+v3=20;
+t=3;
+Vavg=((v1+v2+v3)/t);
+Vrms=(sqrt((v1^2+v2^2+v3^2)/t));
+disp("Vavg=((0+10+20)/3)");
+printf("Vavg=%.f V",Vavg);
+disp("Vrms=(((0)^2+(10)^2+(20)^2)/3)");
+printf("Vrms=%.1f V",Vrms); \ No newline at end of file