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

imaginaryPart(RObject) -- imaginary part of an R object

Description

Extract the imaginary part of each element of an R complex vector, calling R's Im.

i1 : z = RObject(3 + 2*ii)

o1 = [1] 3+2i

o1 : RObject of type complex
i2 : imaginaryPart z

o2 = [1] 2

o2 : RObject of type double

See also

Ways to use this method:


The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/RInterface/doc/complex.m2:73:0.