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

sin(PythonObject) -- sine of a python object

Description

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

i1 : sin toPython 0

o1 = 0.0

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

o2 = 1.0

o2 : PythonObject of class float

See also

Ways to use this method:


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