Python Math libraries - How to?

aguirre.adolfo at gmail.com aguirre.adolfo at gmail.com
Mon Apr 28 22:58:42 EDT 2008


Thank you :-), I´ll do
Adolfo
>
> pi is not a global name. When you do "import math",you aren't adding
> everything to the name space, you are just telling python that you are
> going to be using that file. You then refer to it as math.*, such as
> "math.pi", or "math.pow(r,3)". To use it the way you want to, you
> would have to do "from math import pi" instead of "import math"




More information about the Python-list mailing list