diff options
Diffstat (limited to '24/CH33/EX33.5')
-rwxr-xr-x | 24/CH33/EX33.5/Example33_5.sce | 15 | ||||
-rwxr-xr-x | 24/CH33/EX33.5/Example33_5_result.txt | 5 |
2 files changed, 20 insertions, 0 deletions
diff --git a/24/CH33/EX33.5/Example33_5.sce b/24/CH33/EX33.5/Example33_5.sce new file mode 100755 index 000000000..603dacfd9 --- /dev/null +++ b/24/CH33/EX33.5/Example33_5.sce @@ -0,0 +1,15 @@ +//Given that
+C = 15*10^-6 //in Farad
+Em = 36.0 //in volts
+fd = 60.0 //in Hz
+
+//Sample Problem 33-5a
+printf("**Sample Problem 33-5a**\n")
+//Vc = Emax*sin(w*t)
+printf("The voltage drop across the capacitor is Vc=%1.2f*sin(%1.2f*t)\n", Em, w)
+
+//Sample Problem 33-5b
+printf("\n**Sample Problem 33-5b**\n")
+//I = -C*(dV/dt)
+IcMAX = abs(w*C*Em)
+printf("The current in the capacitor as a function of time is Ic=%1.2f*cos(%1.2f*t)", IcMAX, w)
\ No newline at end of file diff --git a/24/CH33/EX33.5/Example33_5_result.txt b/24/CH33/EX33.5/Example33_5_result.txt new file mode 100755 index 000000000..72d08a752 --- /dev/null +++ b/24/CH33/EX33.5/Example33_5_result.txt @@ -0,0 +1,5 @@ +**Sample Problem 33-5a**
+The voltage drop across the capacitor is Vc=36.00*sin(376.99*t)
+
+**Sample Problem 33-5b**
+The current in the capacitor as a function of time is Ic=0.20*cos(376.99*t)
\ No newline at end of file |