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 /1871/CH7/EX7.8/Ch07Ex8.sce | |
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 '1871/CH7/EX7.8/Ch07Ex8.sce')
-rwxr-xr-x | 1871/CH7/EX7.8/Ch07Ex8.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/1871/CH7/EX7.8/Ch07Ex8.sce b/1871/CH7/EX7.8/Ch07Ex8.sce new file mode 100755 index 000000000..bc370f75b --- /dev/null +++ b/1871/CH7/EX7.8/Ch07Ex8.sce @@ -0,0 +1,18 @@ +// Scilab code Ex7.8: Pg:295 (2008)
+clc;clear;
+c = 3e+08; // Velocity of light, m/s
+e = 1.6e-019; // Charge of an electron, coulomb
+B = 0.5; // Maximum magnetic field at the electron orbit, Weber per meter square
+D = 1.5; // Diameter of the orbit, meter
+R = D/2; // Radius of the orbit, meter
+omega = 50; // frequency of alternating current through electromagnetic coils, Hz
+N = c/(4*2*%pi*omega*R); // Number of revolutions
+E = B*e*R*c/1.6e-013; // Final energy of the electrons, MeV
+E_av = (E*1e+06)/N; // Average energy per revolution, eV
+printf("\nThe energy per revolution of the electron = %4.1f eV ", E);
+printf("\nThe average energy of electron = %3.0f eV ", E_av);
+
+// Result
+// The energy per revolution of the electron = 112.5 eV
+// The average energy of electron = 353 eV
+// The answer is given wrong in the textbook
\ No newline at end of file |