blob: e6c794cee4b05e8063d63a72b7ce8ca6f64cadf8 (
plain)
1
2
3
4
5
6
7
8
9
|
// Scilab code Ex7.6: Pg:293 (2008)
clc;clear;
dE = 15/1e+006; // Increase in energy per revolution, MeV
n = 1e+006; // Number of revolutions
E = dE*n; // Final energy of an electron after 10e+06 revolutions, MeV
printf("\nThe energy of an electron undergoing revolutions = %2.0f MeV ", E);
// Result
// The energy of an electron undergoing revolutions = 15 MeV
|