i need help on builtin function math

Sean 'Shaleh' Perry shaleh at valinux.com
Wed Mar 28 18:39:37 EST 2001


On 28-Mar-2001 Marcus Konermann wrote:
> hello !
> 
> i want to use the sqrt() function of the builtin funtion math in that
> kind:
> 
> import math
> ...
> a=0
> a=sqrt(whatever)
> 
> and than a NameError: sqrt occured and i don´t know why ? Is it
> depending on the OS (i use Windows98 and the pywin
> editor). Other functions, like pow(), from the math module are working.
> Can anyone help me with my problem ?
> 

if you 'import math' then you have to call it as math.sqrt().




More information about the Python-list mailing list