From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2345/CH5/EX5.3/Ex5_3.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 2345/CH5/EX5.3/Ex5_3.sce (limited to '2345/CH5/EX5.3/Ex5_3.sce') 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) -- cgit