summaryrefslogtreecommitdiff
path: root/2345/CH5/EX5.3/Ex5_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '2345/CH5/EX5.3/Ex5_3.sce')
-rwxr-xr-x2345/CH5/EX5.3/Ex5_3.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2345/CH5/EX5.3/Ex5_3.sce b/2345/CH5/EX5.3/Ex5_3.sce
new file mode 100755
index 000000000..7cccf9cae
--- /dev/null
+++ b/2345/CH5/EX5.3/Ex5_3.sce
@@ -0,0 +1,18 @@
+//Finding charge and energy
+//Example 5.3(pg 194)
+clc
+clear
+//Before immersion of oil
+C=0.005*(10^-6)
+V=500
+q=C*V
+E=(1/2)*(C*V*V)
+printf('Charge of condenser is %e coulomb \n',q)
+printf('Energy stored in condenser before immersion of oil is %e Joules \n',E)
+
+//After immersion of oil
+K=2.5
+q1=q// since no loss of charge
+C1=K*C//capacity of condenser
+E1=(q1^2)/(2*C1)// energy stored in condenser
+printf('Energy stored in condenser after immersion of oil is %e Joules',E1)