summaryrefslogtreecommitdiff
path: root/3769/CH13/EX13.17/Ex13_17.sce
diff options
context:
space:
mode:
Diffstat (limited to '3769/CH13/EX13.17/Ex13_17.sce')
-rw-r--r--3769/CH13/EX13.17/Ex13_17.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3769/CH13/EX13.17/Ex13_17.sce b/3769/CH13/EX13.17/Ex13_17.sce
new file mode 100644
index 000000000..bda77b716
--- /dev/null
+++ b/3769/CH13/EX13.17/Ex13_17.sce
@@ -0,0 +1,13 @@
+clear
+//Given
+C=50*10**-6 //F
+V=230 //V
+
+//Calculation
+//
+q=C*V*sqrt(2)
+E=0.5*C*(V*sqrt(2))**2
+
+//Result
+printf("\n (i) Maximum charge on the capacitor is %0.2f *10**-3 C",q*10**3)
+printf("\n (ii) The maximum energy stored in the capacitor is %0.2f J",E)