Jump to content

File:Atan2 differs from arctan.png

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (1,262 × 1,102 pixels, file size: 139 KB, MIME type: image/png)

Summary

Description
English: The arctangent function can be used to find the angle of a point (x, y), using arctan(y/x). Unfortunately, because y/x is the same as (−y)/(−x), this conflates pairs of opposite points, and does not return the intended angle whenever x is negative. The 2-argument arctangent function does not have this problem. When x < 0, the two-argument arctangent differs from arctan. If y > 0, by −π radians, or if y < 0, by π radians. When x > 0, the two functions have the same result.
Date
Source Own work, plotted with Desmos https://www.desmos.com/calculator/tx4ya4kk1h
Author Jacob Rus

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

When ''x'' < 0, atan2 differs from arctan by π radians.

Items portrayed in this file

depicts

6 June 2024

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current17:28, 6 June 2024Thumbnail for version as of 17:28, 6 June 20241,262 × 1,102 (139 KB)JacobolusUploaded own work with UploadWizard

The following page uses this file:

Metadata