#importing modules
import math
from __future__ import division
#Variable declaration
h=6.626*10**-34; #planck's constant(Js)
e=1.6*10**-19; #conversion factor from J to eV
m=9.1*10**-31; #mass of electron(kg)
V=1; #assume
#Calculation
lamda=h/math.sqrt(2*m*e*V); #debroglie wavelength(m)
#Result
print "debroglie wavelength is math.sqrt(",int((lamda*10**10)**2),"/V) angstrom"
#importing modules
import math
from __future__ import division
#Variable declaration
h=6.626*10**-34; #planck's constant(Js)
c=3*10**8; #velocity of light(m/sec)
e=1.6*10**-19; #conversion factor from J to eV
m=9.1*10**-31; #mass of electron(kg)
KE=100*10**6; #kinetic energy(eV)
#Calculation
p=math.sqrt(2*m*e); #momentum(kg m/s)
lamda1=h/p; #debroglie wavelength for 1 eV(m)
lamda2=h*c/(KE*e); #debroglie wavelength for 100 MeV(m)
#Result
print "debroglie wavelength for 1 eV is",round(lamda1*10**9,1),"nm"
print "debroglie wavelength for 100 MeV is",round(lamda2*10**15,2),"*10**-15 m"
#importing modules
import math
from __future__ import division
#Variable declaration
m=9.1*10**-31; #mass of electron(kg)
v=4*10**6; #speed of electron(m/s)
sp=1/100; #speed precision
hbar=1.05*10**-34;
#Calculation
p=m*v; #momentum(kg m/s)
deltap=p*sp; #uncertainity in momentum(kg m/s)
deltax=hbar/(2*deltap); #precision in position(m)
#Result
print "precision in position is",round(deltax*10**9,2),"nm"
#importing modules
import math
from __future__ import division
#Variable declaration
c=3*10**8; #velocity of light(m/sec)
lamda=4000*10**-10; #wavelength(m)
deltat=10**-8; #average lifetime(s)
#Calculation
delta_lamda=lamda**2/(4*math.pi*c*deltat); #width of line(m)
#Result
print "width of line is",round(delta_lamda*10**15,2),"*10**-15 m"