summaryrefslogtreecommitdiff
path: root/2234/CH4/EX4.9
diff options
context:
space:
mode:
Diffstat (limited to '2234/CH4/EX4.9')
-rwxr-xr-x2234/CH4/EX4.9/ex4_9.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/2234/CH4/EX4.9/ex4_9.sce b/2234/CH4/EX4.9/ex4_9.sce
new file mode 100755
index 000000000..b9dad6020
--- /dev/null
+++ b/2234/CH4/EX4.9/ex4_9.sce
@@ -0,0 +1,10 @@
+clc;
+e=-1.6*10^-19; //charge on electron in Coulomb
+q=20*10^-6; //charge in Coulomb
+r1=0.1; //r1 in m
+r2=0.05; //r2 in m
+Va=9*10^9*(q/r1); //calculating voltage at A
+Vb=9*10^9*(q/r2); //calculating voltage at B
+V=Va-Vb; //potential difference
+W=V*e; //calculating work done in joule
+disp(W,"Work done to take the electron from A to B in Joule = "); //displaying result \ No newline at end of file