blob: acc18b7a1c7b5ad94bb69863119c960b49c2e2d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clc
clear
//INPUT
E=1*1.6*10^-16;//Kinetic energy of electron in J
m=9.1*10^-31;//Mass of electron in Kg
c=3*10^8;//Speed of light in m/s
//CALCULATIONS
v=sqrt((2*E)/m)//Velocity of the electron in m/s
M=(m/sqrt(1-(v^2/c^2)))/10^-31//Mass of the electron in kg
//OUTPUT
mprintf('Mass of electron having energy 1 keV is %5.4f*10^-31 kg',M)
|