diff options
Diffstat (limited to '1523/CH4/EX4.14/ex4_14.sce')
-rwxr-xr-x | 1523/CH4/EX4.14/ex4_14.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1523/CH4/EX4.14/ex4_14.sce b/1523/CH4/EX4.14/ex4_14.sce new file mode 100755 index 000000000..99ec7040d --- /dev/null +++ b/1523/CH4/EX4.14/ex4_14.sce @@ -0,0 +1,13 @@ +//AC Circuits: example 4.14 :(pg 4.11)
+v1=0;
+v2=40;
+v3=60;
+v4=80;
+v5=100;
+t=8;
+Vavg=((v1+v2+v3+v4+v5+v4+v3+v2)/t);
+Vrms=sqrt((v1^2+v2^2+v3^2+v4^2+v5^2+v4^2+v3^2+v2^2)/t);
+disp("Vavg=((0+40+60+80+100+80+60+40)/8)");
+printf("\nVavg=%.1f V",Vavg);
+disp("Vrms=sqrt((0+(40)^2+(60)^2+(80)^2+(100)^2+(80)^2+(60)^2+(40)^2)/8)");
+printf("\nVrms=%.2f V",Vrms);
\ No newline at end of file |