Jump to content

File:Atan2.PNG

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

Atan2.PNG(640 × 480 pixels, file size: 7 KB, MIME type: image/png)

Summary

Description
English: Atan2 function. On horizontal axis 0X there is complex argument of point of unit circle. It is measured ( principal value ) from 0 to 2pi ( modulo 2 pi).

On vertical axis 0Y ther is output of function atan2 :

where is a point of unit circle :

such

so

Atan2 function gives argument of complex number with principal value in range -pi to pi, , that is -π < atan2(y, x) ≤ π.

Such definition makes function single-valued, [1] but creates discontinuity at angle pi.

Maxima source code

It uses gnuplot through Maxima

 L(t):=exp(%i*t*2*%pi); /* unit circle parametrised with angle in turns */
 plot2d(
 [atan2(imagpart(L(x)),realpart(L(x)))],
 [x,0,1],
 [y,-2*%pi,2*%pi],
 [plot_format, gnuplot],
 [gnuplot_term,"png"],
 [gnuplot_out_file, "atan2.png"],
 [legend, "atan2"],
 [xlabel,"angle in radians"], 
 [ylabel,"angle in radians"],
 [gnuplot_preamble,"
   set key left top;
  set xtics ('pi/2' 0.25, 'pi' 0.5, '3pi/2' 0.75,'2pi' 1.0);
  set ytics ('-2pi' -6.283, '-pi' -3.1415, '-pi/2' -1.5708, '0' 0, 'pi/2' 1.5708, 'pi' 3.1415, '2pi' 6.283);
  set grid xtics ytics 
  "]
 );
After plotting in Maxima vertical line was manually removed ( using image editor) and red circles was added.
Date
Source Own work
Author Adam majewski
Other versions


References

  1. Computation of the external argument by Wolf Jung

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported 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.
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
You may select the license of your choice.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

5 February 2009

image/png

287ef68bb8574a07da37e2fa3fc4cefba9e78c3b

7,575 byte

480 pixel

640 pixel

File history

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

Date/TimeThumbnailDimensionsUserComment
current16:56, 5 February 2009Thumbnail for version as of 16:56, 5 February 2009640 × 480 (7 KB)Soul windsurfer{{Information |Description={{en|1=Atan2 function}} |Source=Own work by uploader |Author=Adam majewski |Date=2009.02.05 |Permission= |other_versions= }} <!--{{ImageUpload|full}}-->
No pages on the English Wikipedia use this file (pages on other projects are not listed).

Global file usage

The following other wikis use this file:

  • Usage on fr.wikipedia.org