Macaulay2 » Documentation
Packages » Python » PythonObject » cos(PythonObject)
next | previous | forward | backward | up | index | toc

cos(PythonObject) -- cosine of a python object

Description

This calls Python's built-in math.cos function, which computes the cosine of x.

i1 : cos toPython 0

o1 = 1.0

o1 : PythonObject of class float
i2 : cos toPython (pi / 2)

o2 = 6.123233995736766e-17

o2 : PythonObject of class float

See also

Ways to use this method:


The source of this document is in Python/doc/trig.m2:133:0.