summaryrefslogtreecommitdiff
path: root/1991/CH7/EX7.1/1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1991/CH7/EX7.1/1.sce')
-rwxr-xr-x1991/CH7/EX7.1/1.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1991/CH7/EX7.1/1.sce b/1991/CH7/EX7.1/1.sce
new file mode 100755
index 000000000..35b7a3111
--- /dev/null
+++ b/1991/CH7/EX7.1/1.sce
@@ -0,0 +1,12 @@
+clc
+clear
+//input
+e=1.6*10^-19 //charge of electron
+r=0.075*10^-3 // radius of electron
+ep=8.85*10^-12 //permittivity of free space
+//calculation
+v=-e/(4*%pi*ep*r)//electric potential
+e=-e/(4*%pi*ep*r*r)//electric field strength
+//output
+printf("resultant potential is %3.3e V",v)
+printf("\n resultant electric field strength %3.3f V/m",e)