summaryrefslogtreecommitdiff
path: root/2780/CH12/EX12.2/Ex12_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '2780/CH12/EX12.2/Ex12_2.sce')
-rwxr-xr-x2780/CH12/EX12.2/Ex12_2.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2780/CH12/EX12.2/Ex12_2.sce b/2780/CH12/EX12.2/Ex12_2.sce
new file mode 100755
index 000000000..a4f177cbe
--- /dev/null
+++ b/2780/CH12/EX12.2/Ex12_2.sce
@@ -0,0 +1,13 @@
+clc
+//to calculate electric field at a point from centre of the shell
+q=0.2*10^-6 //charge
+r=3 //radius
+epsilon0=8.85*10^-12
+E=q/(4*%pi*epsilon0*r^2)
+disp("electric field at a point from centre of the shell is E="+string(E)+"N/coulomb")
+//to calculate electric field at a point just outside the shell
+R=0.25 //radius
+E=q/(4*%pi*epsilon0*R^2)
+disp("electric field at a point just outside the shell is E="+string(E)+"N/coulomb")
+//to calculate the electric field at a point inside the shell
+//when the point is situated inside the spherical shell,the electric field is zero