math module

gombosk at vas.birosag.hu gombosk at vas.birosag.hu
Thu Jan 10 05:00:01 EST 2002


I have a problem with math module:

I import math module, because to call exp(x) or sqrt(x) does not work.

Do I need anything else to do?

>>> import math
>>> exp(10)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
NameError: name 'exp' is not defined

This is the problem...

Katalin





More information about the Python-list mailing list