#Varaible declaration
e = 1.602e-19; # Charge of electron in Coloumb
lamda = 2e-10; # Wavelength of a photon in meters
h = 6.62e-34; # Planc's constant in Joule second
c = 3.e8; # Velocity og light in air in meter per second
#Calculations
E = (h*c)/(lamda*e);#Thermal conductivity of Ni
p = h/lamda;#The momentum of photon
#Results
print 'The energy of photon is ',round(E,3),'eV' #Incorrect answer in textbook
print 'The momentum of photon is ',p,'(kg.m)/s'
#Varaible declaration
h = 6.62e-34; # Planck's constant J.s
v = 440e3; # Operating frequency of radio in Hertz
P = 20e3 ; # Power of radio transmitter in Watts
#Calculation
n = P/(h*v);# Let n be the number of photons emitted per second
#Result
print 'Number of photon emitted per second is ',round(n/1e30,2),'*10^30'
#Varaible declaration
h = 6.62e-34; # Planck's constant in J.s
c = 3e8; # Velocity of ligth in air
t = 18000; # Time of glow - (5*3600) in seconds
P = 30 #Power in watts
lamda = 5893e-10; # Wavelength of emitted ligth in meters
#calculations
E = (h*c)/lamda; # Energy of a photon
n = (P*t)/E; # let n be the number of photons emitted in 5 hours
#Result
print 'Number of photons emitted in 5 hours is',round(n/1e24,3),'*10^24'
from math import cos
#Varaible declaration
h = 6.62*1e-34; # Plancl's constant in J.s
c = 3*1e8; # Velocity of light in vacccum in m/s
m = 9.1*1e-31; # Mass of electron in Kg
l = 0.7078*1e-10 # Wavelength in meter
theta = 90;
#Calculations
delta = (h*(1-round(cos(theta)))/(m*c));
Nlambda = l + delta;
#Result
print 'The wavelength of scattered X-rays is %.4f A'%(Nlambda/1e-10)
from math import cos,degrees,radians
#Varaible declaration
m = 9.1e-31; # Mass of electron in kg
h = 6.62e-34; # Planck's constant in J.s
c = 3e8; # Velocity of light in vaccum
lamda = 1.8e18; # Frequency of the incident rays
theta = 180;#angle in degree
#Calculations
lamda = c/lamda;
delta = (h*(1-cos(radians(theta))))/(m*c);
Nlambda = lamda+delta;#'Wavelength of scattered X-rays
#Result
print 'Wavelength of scattered X-rays is %.4f A'%(Nlambda/1e-10)
from math import cos
#Varaible declaration
m = 9.1e-31; # Mass of electron in kg
h = 6.62e-34; # Planck's constant in Js
c = 3e8; # Velocity of light in vaccum
lamda = 1.12e-10; # Wavelength of light in meters
theta = 90;
#Calculations
delta = (h*(1-round(cos(theta))))/(m*c);
Nlambda = lamda + delta;#The wavelength of scattered X-rays
E = (h*c)*((1/lamda)-(1/Nlambda)) ;#Energy of electron
#Results
print 'The wavelength of scattered X-rays is %.3f A'%(Nlambda/1e-10)
print 'Energy of electron is %.2f *10^-17 J'%(E/1e-17)
from math import cos,radians
#Varaible declaration
m = 9.1e-31; # Mass of electron in kg
h = 6.62e-34; # Planck's constant in Js
c = 3e8; # Velocity of light in vaccum
lamda = 0.03e-10; # Wavelength of light in meters
theta = 60;#angle in degrees
#Calculations
delta = (h*(1-cos(radians(theta))))/(m*c);
Nlambda = lamda + delta;
E = ((h*c)*((1./lamda)-(1./Nlambda)))/1.6e-19 ;#Energy of recoiling electron
#Result
print 'Energy of recoiling electron is %.3f MeV'%(E/1e+6)
from math import cos,radians
#Varaible declaration
m = 9.1e-31; # Mass of electron in kg
h = 6.62e-34; # Planck's constant in Js
c = 3e8; # Velocity of light in vaccum
lamda = 0.5e-10; # Wavelength of light in meters
theta = 90;
#Calculations
delta = (h*(1-cos(radians(theta))))/(m*c);
Nlambda = lamda + delta;
E = (h*c)*((1./lamda)-(1./Nlambda)) ;
#Result
print 'Energy of electron is %.2f *10^-16 J'%(E/1e-16)
#Varaible declaration
m = 9.1e-31; # Mass of electron in kg
h = 6.62e-34; # Planck's constant in Js
c = 3e8; # Velocity of light in vaccum
lamda = 1.5e-10; # Wavelength of light in meters
E = 0.5e-16; # Energy of electron in J
#Calculation
Nlambda = ((h*c)/lamda)-E;#'Energy of scattered electron
#Result
print 'Energy of scattered electron is %.2f *10^-16 J'%(Nlambda/1e-16)
from math import cos,radians
#Varaible declaration
lamda=0.022*1e-10;#wavelength in meters
th=45;#angle in degree
m=9.1*1e-31;
c=3*1e8;#velocity of light in free space
h=6.62*1e-34;#planck's constant
#Calculations&Results
x=cos(th);
dlamda=h*(1-cos(radians(th)))/(m*c);#delta lemda
print 'delta lemda is= %.3f A'%(dlamda/1e-10)
lamda1=lamda-dlamda;#wavelength of incident X-rays
print 'wavelength of incident X-rays %.3f A'%(lamda1/1e-10)
#Varaible declaration
a = 1e-10 # Width of box in meter
m = 9.1e-31; # Mass of electron in kg
h = 6.62e-34; # Planck's constant in Js
c = 3e8; # Velocity of light in vaccum
n = 1; # Single electron
#Calculation
E = (n**2 * h**2)/(8*m*a**2*1.6e-19);
#Result
print'Energy of electrons is %.1f n^2 eV'%E
#Varaible declaration
a = 1e-10 # Width of box in meter
m = 9.1e-31; # Mass of electron in kg
h = 6.62e-34; # Planck's constant in Js
c = 3e8; # Velocity of light in vaccum
n = 1; # Single electron
#Calculations
E = (h**2)/(8*m*a**2);#Energy of in lower level
p = h/(2*a);#Momentum
#Results
print 'Energy of in lower level %.f *10^-18 J'%(E/1e-18)
print'Momentum is %.2f *10^-24 (kg.m)/s'%(p/1e-24)
#Varaible declaration
a = 0.2e-9 # Width of box in meter
m = 9.1e-31; # Mass of electron in kg
h = 6.62e-34; # Planck's constant in Js
c = 3e8; # Velocity of light in vaccum
E5 = 230*1.6e-19 # Energy of a particle in Volts in 5th antinode
n = 5;
#Calculations
E1 = E5/(n**2);
m = (h**2)/(8*E1*a**2);#Mass of electron
#Result
print 'Mass of electron is %.2f *10^-31 kg'%(m/1e-31)
#Varaible declaration
n = 1; # Single particle
a = 50e-10; # Width of box in meter
deltax = 10e-10; # Intervel between particle
#Calculations
p = (2/a)*deltax;#The probability of finding the particle
#Result
print 'The probability of finding the particle is %.1f'%p
from math import sqrt
#Varaible declaration
h = 6.62*1e-34; # Planck's constant
m = 1e-9; # Mass of particle in kg
t = 100; #Time reqired by the particle to cross 1 mm distance
a = 1e-3 ; # Width of box in m
v = 1e-5; # Velocity of particle in m/s
#Calculations
E = (0.5*m*v**2);
n = sqrt(8*m*a**2*E/(h**2));#The quantum state
#Result
print 'The quantum state is %.f*10^16 '%(n/1e+16)
#Varaible declaration
h = 6.62e-34; # Planck's constant in J.s
m = 9.1e-31 # Mass of electron in kg
nk =1;
nl = 1;
nm = 1;
a = 0.5e-10 # Width of cubical box in meter
#Calculation
E = (h**2*(nk**2+nl**2+nm**2))/(8*m*a**2*1.6e-19);#The lowest energy level will have energy
#Result
print 'The lowest energy level will have energy %.f eV'%E