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

sqrt(PythonObject) -- square root of a python object

Description

This calls Python's built-in math.sqrt function, which computes the square root of x.

i1 : sqrt toPython 4

o1 = 2.0

o1 : PythonObject of class float
i2 : sqrt toPython 2

o2 = 1.4142135623730951

o2 : PythonObject of class float

Ways to use this method:


The source of this document is in Python/doc/exp-log.m2:128:0.