Beginner question
Erik Max Francis
max at alcyone.com
Thu May 16 03:14:13 EDT 2002
Mats Holmberg wrote:
> ?? what to do? I need the trigonometric functions, but how do I get to
> use
> them?
The way you get any objects inside modules. Reference them explicitly:
import math
print math.cos(10)
or import it individually:
from math import cos
print cos(10)
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ Who'd ever think it / Such a squalid little ending
\__/ The American and Florence, _Chess_
Church / http://www.alcyone.com/pyos/church/
A lambda calculus explorer in Python.
More information about the Python-list
mailing list