Lesson plan

Atan2

from the origin to the point , confined to . In computing and mathematics, the function atan2 is the 2-argument arctangent. By definition, \theta = \operatorname{atan2}(y, x) is the angle measure (in radians, with -\pi ) between the positive x -axis and the ray from the origin to the point (x,\,y) in the Cartesian plane. Equivalently, \operatorname{atan2}(y, x) is the argument (also called phase or angle) of the complex number . (The argument of a function and the argument of a complex number, each mentioned above, should not be confused.) The \operatorname{atan2} function first appeared in the programming language Fortran in 1961. It was originally intended to return a correct and unambiguous value for the angle in converting from Cartesian coordinates to polar coordinates . If \theta = \operatorname{atan2}(y, x) and r = \sqrt{x^2 + y^2} , then x = r \cos \theta and . If , the desired angle measure is . However, when , the angle \arctan(y / x) is diametrically opposite the desired angle, and (a half turn) must be added to place the point in the correct quadrant. Using the \operatorname{atan2} function does away with this correction, simplifying code and mathematical formulas.

Back to article

Article summary

from the origin to the point , confined to . In computing and mathematics, the function atan2 is the 2-argument arctangent. By definition, \theta = \operatorname{atan2}(y, x) is the angle measure (in radians, with -\pi ) between the positive x -axis and the ray from the origin to the point (x,\,y) in the Cartesian plane. Equivalently, \operatorname{atan2}(y, x) is the argument (also called phase or angle) of the complex number . (The argument of a function and the argument of a complex number, each mentioned above, should not be confused.) The \operatorname{atan2} function first appeared in the programming language Fortran in 1961. It was originally intended to return a correct and unambiguous value for the angle in converting from Cartesian coordinates to polar coordinates . If \theta = \operatorname{atan2}(y, x) and r = \sqrt{x^2 + y^2} , then x = r \cos \theta and . If , the desired angle measure is . However, when , the angle \arctan(y / x) is diametrically opposite the desired angle, and (a half turn) must be added to place the point in the correct quadrant. Using the \operatorname{atan2} function does away with this correction, simplifying code and mathematical formulas.

Key claims

No claims recorded.

Discussion questions

  1. Summarise the article in your own words. Which single claim would you verify first, and why?
  2. Which claim in this article is most likely to be revised as the sources update? How would you check its current status?
  3. If two sources disagreed about one of these facts, what would you need in order to trust one over the other?

Bibliography

No sources recorded.

Key claims and bibliography are generated from the same tracked claims and sources as the article page.