Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Classical Versus Relativistic Electron
- % Determines the final velocity of electrons using classical and
- % relativistic mechanics
- % Constants
- c = 3.00*10^8; % [m/s] Speed of Light
- M0c2 = 511; % [KeV] Rest energy of electron
- M0 = 9.11*10^-31; % [kg] Rest nass of electron
- Echarge = 1.6022*10^-19; % [C]
- % Inputs and Variables
- d = input('Distance between plates\n');
- V = input('Voltage difference kV\n');
- % Outputs and Equations
- BetaClass = sqrt(2*V/M0c2);
- BetaRela = sqrt(1-(M0c2/(M0c2+V))^2);
- fprintf('Classical: %.3f \nRelativistic: %.3f\n', BetaClass, BetaRela)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement