Macaulay2 » Documentation
Packages » Macaulay2Doc » analytic functions » atan2
next | previous | forward | backward | up | index | toc

# atan2 -- compute an angle of a certain triangle

- Usage:
    `atan2(y,x)`
    `atan2(y,I)`
    `atan2(J,x)`
    `atan2(J,I)`
- Inputs:
  - y, a real number
  - x, a real number
  - J, a real interval
  - I, a real interval
- Outputs:
  - a real number, the angle (in radians) formed with the x-axis by the ray from the origin to the point (x,y)
  - a real number, an interval containing the angles (in radians) formed with the x-axis by the rays from the origin to the points of (I,y),(x,J),(I,J)

## Description

    i1 : atan2(1,0)

    o1 = 1.570796326794897

    o1 : RR (of precision 53)

    i2 : atan2(0,1)

    o2 = 0

    o2 : RR (of precision 53)

    i3 : atan2(-1,-1)

    o3 = -2.356194490192345

    o3 : RR (of precision 53)

## See also

- atan -- compute the arctangent of a number

## Ways to use atan2:

- `atan2(RR,RR)`
- `atan2(RR,RRi)`
- `atan2(RRi,RR)`
- `atan2(RRi,RRi)`

## For the programmer

The object atan2 is a method function.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Macaulay2Doc/functions/atan-doc.m2:23:0.