Advertisement
hiddenGem

Classical Vs. Relativistic Electron

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