summaryrefslogtreecommitdiff
path: root/24/CH26/EX26.5
diff options
context:
space:
mode:
Diffstat (limited to '24/CH26/EX26.5')
-rwxr-xr-x24/CH26/EX26.5/Example26_5.sce15
-rwxr-xr-x24/CH26/EX26.5/Example26_5_result.txt3
2 files changed, 18 insertions, 0 deletions
diff --git a/24/CH26/EX26.5/Example26_5.sce b/24/CH26/EX26.5/Example26_5.sce
new file mode 100755
index 000000000..530b70bee
--- /dev/null
+++ b/24/CH26/EX26.5/Example26_5.sce
@@ -0,0 +1,15 @@
+exec('electrostatics.sci', -1)
+
+//Given that
+C = 13.5*10^-12 //in F
+V = 12.5 //in Volts
+x = 6.50
+
+//Sample Problem 26-5
+printf("**Sample Problem 26-5**\n")
+q = C*V
+Ui = q^2/(2*C)
+printf("The initial stored energy is equal to %eJ\n", Ui)
+C = x*C
+Uf = q^2/(2*C)
+printf("The energy stored after the slab is inserted is equal to %eJ", Uf) \ No newline at end of file
diff --git a/24/CH26/EX26.5/Example26_5_result.txt b/24/CH26/EX26.5/Example26_5_result.txt
new file mode 100755
index 000000000..ee5eb83fd
--- /dev/null
+++ b/24/CH26/EX26.5/Example26_5_result.txt
@@ -0,0 +1,3 @@
+**Sample Problem 26-5**
+The initial stored energy is equal to 1.054688e-009J
+The energy stored after the slab is inserted is equal to 1.622596e-010J \ No newline at end of file