From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1871/CH7/EX7.7/Ch07Ex7.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 1871/CH7/EX7.7/Ch07Ex7.sce (limited to '1871/CH7/EX7.7') diff --git a/1871/CH7/EX7.7/Ch07Ex7.sce b/1871/CH7/EX7.7/Ch07Ex7.sce new file mode 100755 index 000000000..9f78ebc68 --- /dev/null +++ b/1871/CH7/EX7.7/Ch07Ex7.sce @@ -0,0 +1,17 @@ +// Scilab code Ex7.7: Pg:294 (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 +R = 0.75; // 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/(e*1e+006); // Final energy of the electrons, MeV +E_av = E*1e+06/N; // Average energy per revolution, eV +printf("\nThe final energy of electron = %5.1f MeV ", E); +printf("\nThe average energy of electron = %3.0f eV ", E_av); + +// Result +// The final energy of electron = 112.5 MeV +// The average energy of electron = 353 eV +// The answer is wrong in the textbook \ No newline at end of file -- cgit