#calculate the frequency of transistion
#Initialization of variables
import math
mH=1.673*math.pow(10,-27) #kg
mCl=5.807*math.pow(10,-26) #kg
R=127.4 *math.pow(10,-12) #m
#calculations
mu=mH*mCl/(mH+mCl)
I=mu*R*R
B=1.05457*math.pow(10,-34) /(4*math.pi*I)
f=2*B/math.pow(10,9)
#results
print '%s %.1f %s' %("Frequency of transistion =",f,"GHz")
#calculate the wavenumber and wavelength
#Initialization of variables
import math
v=89.6*math.pow(10,12) #Hz
#calculations
l=3*math.pow(10,8) /v
wn=math.pow(10,-2) /l
#results
print '%s %d %s' %("Wavenumber =",wn," cm^-1")
print '%s %.2f %s' % ("\n Wavelength =",l*math.pow(10,6),"mu m")