##Name: Wurong Weng
##MacID: wengwr
##Student Number: 1224989
##Date: Jan. 30, 2013


import math

v = input("Please enter the velocity of the particle, v: ")
m0 = input("Please enter the mass of the particle at rest, m0: ")

c = 3.e8
h = 6.63e-34

A = (h*math.sqrt(1-v**2/c**2))/(m0*v)
B = (h*math.sqrt(1-v**2/c**2))/(5*m0*v)
C = 100.*abs((A-B)/B)

print
print "The de Broglie wavelength for v and m0, A=",A
print "The de Broglie wavelength for v and 5*m0, B=",B
print "The relative difference between these values, C=",C


##Design Question
##Yes, there is more than one way of getting square root. The one i have used above
##is math.sqrt(number), the other two ways are pow(number,0.5) and number ** 0.5.
##
##Test Plan
##Test: 1
##Input: [2.2e6, 9.11e-31]
##Expected Output: [3.30796413745e-10, 6.61592827489e-11, 400.0]
##Actual Output: [3.30796413745e-10, 6.61592827489e-11, 400.0]
##Comment: Pass
##
##Test: 2
##Input: [string, 9.11e-31]
##Expected Output: [error]
##Actual Output: [NameError]
##Comment: Pass
##
##Test: 3
##Input: [0, 9.11e-31]
##Expected Output: [error]
##Actual Output: [ZeroDivisionError]
##Comment: Pass
