- #1
sk1105
- 88
- 12
Python:
global m_mu = 106.0
global M_Z = 91200.0
global a = 1.0/128.0
global theta_w = asin(sqrt(0.23152))
global g_e = sqrt(4*pi*a)
global g_Z = g_e/(cos(theta_w)*sin(theta_w))
I have written this code in Python 2.7 using Enthought Canopy, and each line throws up a syntax error, but I have no idea why. Also, the values assigned to m_mu and M_Z used to be <<1 until I changed the units to make the numbers bigger, but when Enthought traces the line of code containing the syntax error, it gives me the old tiny value even though I had saved my changes. Does anyone know what is going on?
PS - I know global variables aren't entirely encouraged, but it seems to be the best solution for what I'm trying to do. Perhaps I'll find another way, but that's for a different discussion.