diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2234/CH4/EX4.9 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2234/CH4/EX4.9')
-rwxr-xr-x | 2234/CH4/EX4.9/ex4_9.sce | 10 |
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 |