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 /1970/CH1/EX1.6 | |
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 '1970/CH1/EX1.6')
-rwxr-xr-x | 1970/CH1/EX1.6/Ch01Exa6.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1970/CH1/EX1.6/Ch01Exa6.sce b/1970/CH1/EX1.6/Ch01Exa6.sce new file mode 100755 index 000000000..3991a1c4e --- /dev/null +++ b/1970/CH1/EX1.6/Ch01Exa6.sce @@ -0,0 +1,14 @@ +// Scilab code Exa1.6: : Page 53 (2011)
+clc; clear;
+V = 1000; // Potential difference, volts
+R = 18.2e-02; // Radius of the orbit, metre
+B = 1000e-04; // Magnetic field, tesla
+e = 1.60218e-019; // Charge of an electron, C
+n = 1; // Number of the ion
+v = 2*V/(R*B); // Speed of the ion, metre per sec
+M = 2*n*e*V/v^2; // Mass of the ion, Kg
+printf("\nSpeed of the ion: %6.4e m/s \nMass of the ion : %4.2f u", v, M/1.67e-027);
+
+// Result
+// Speed of the ion: 1.0989e+05 m/s
+// Mass of the ion : 15.89 u
|