Macaulay2 » Documentation
Packages » RInterface » RObject » sqrt(RObject)
next | previous | forward | backward | up | index | toc

sqrt(RObject) -- square root of an R object

Description

Compute the square root of each element of an R numeric vector, calling R's sqrt.

i1 : x = RObject 2

--error or time limit reached in conversion of output to net: type 'debugError()' to run it again; will try conversion to string

o1 = 2

o1 : RObject of type integer
i2 : sqrt x

--error or time limit reached in conversion of output to net: type 'debugError()' to run it again; will try conversion to string

o2 = 1.4142135623731

o2 : RObject of type double

See also

Ways to use this method:


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