If you want to work with mathematical functions, you will need to import the math library.
>>> import math
>>> print p
For complex numbers, you must import cmath.
Posted by: holan | post date: 11-20-2012 | Subject: Python Programming Language