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

atan2(RObject,RObject) -- two-argument arctangent of R objects

Description

Compute the two-argument arctangent (i.e., the angle in radians between the positive x-axis and the point (x, y)), calling R's atan2.

i1 : atan2(RObject 1, -1)

o1 = [1] 2.356194

o1 : RObject of type double
i2 : atan2(sqrt 3, RObject 1)

o2 = [1] 1.047198

o2 : RObject of type double

One of the operands may be a Macaulay2 object. It will be converted to an RObject before the operation is performed.

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/trig.m2:103:0.