File:Atan2.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
File:Atan2-discontinuity.svg is a vector version of this file. It should be used in place of this PNG file when not inferior.Category:Vector version available

File:Atan2.PNG → File:Atan2-discontinuity.svg

For more information, see Help:SVG.

In other languages
Alemannisch  العربية  беларуская (тарашкевіца)  български  বাংলা  català  нохчийн  čeština  dansk  Deutsch  Ελληνικά  English  British English  Esperanto  español  eesti  euskara  فارسی  suomi  français  Frysk  galego  Alemannisch  עברית  हिन्दी  hrvatski  magyar  հայերեն  Bahasa Indonesia  Ido  italiano  日本語  ქართული  한국어  lietuvių  македонски  മലയാളം  Bahasa Melayu  မြန်မာဘာသာ  norsk bokmål  Plattdüütsch  Nederlands  norsk nynorsk  norsk  occitan  polski  prūsiskan  português  português do Brasil  română  русский  sicilianu  Scots  slovenčina  slovenščina  српски / srpski  svenska  தமிழ்  ไทย  Türkçe  татарча / tatarça  українська  vèneto  Tiếng Việt  中文  中文(中国大陆)  中文(简体)  中文(繁體)  中文(马来西亚)  中文(新加坡)  中文(臺灣)  +/−
New SVG image


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.
Category:CC-BY-SA-3.0#Atan2.PNG
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.
Category:License migration redundant#Atan2.PNGCategory:GFDL#Atan2.PNG
You may select the license of your choice.
Category:Self-published work Category:Gnuplot graphics Category:Atan2 Category:Images with Maxima CAS source code
Category:Atan2 Category:CC-BY-SA-3.0 Category:GFDL Category:Gnuplot graphics Category:Images with Maxima CAS source code Category:License migration redundant Category:Self-published work Category:Vector version available