File:Atan2-discontinuity.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 640 × 480 pixels, file size: 20 KB)

Captions

Captions

Add a one-line explanation of what this file represents
Description Graph of the function , as θ ranges from 0 to 2π. Notice the discontinuity at θ = π.
Date (UTC)
Source
Author
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.

Gnuplot script[edit]

 # Output to svg
 set terminal svg size 640 480
 set output "Atan2-discontinuity.svg"
 
 # Use lots of samples
 set samples 1000
 
 # Configure the graph
 set xlabel "angle in radians"
 set ylabel "angle in radians"
 set key left top
 set grid
 
 # (Manually) set the tics so they say "pi/2", "pi", etc.
 set xtics ("pi/2" pi/2, "pi" pi, "3pi/2" 3*pi/2, "2pi" 2*pi)
 set ytics ("-2pi" -2*pi, "-pi" -pi, "-pi/2" -pi/2, "0" 0, "pi/2" pi/2, "pi" pi, "2pi" 2*pi)
 
 # Plot
 plot [0:2*pi][-2*pi:2*pi] atan2(sin(x), cos(x)) title "atan2"

Some post processing done in Inkscape, specifically removal of the ugly nonexistent vertical line at θ = π and insertion of the blue circles.

Original upload log[edit]

This image is a derivative work of the following images:

  • File:Atan2.PNG licensed with Cc-by-sa-3.0, GFDL
    • 2009-02-05T16:56:20Z Adam majewski 640x480 (7575 Bytes) {{Information |Description={{en|1=Atan2 function}} |Source=Own work by uploader |Author=[[User:Adam majewski|Adam majewski]] |Date=2009.02.05 |Permission= |other_versions= }}

Uploaded with derivativeFX

File history

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

Date/TimeThumbnailDimensionsUserComment
current06:09, 19 May 2010Thumbnail for version as of 06:09, 19 May 2010640 × 480 (20 KB)Kpengboy (talk | contribs)Made the upper circle at π filled in, because atan2 is defined there
02:39, 18 May 2010Thumbnail for version as of 02:39, 18 May 2010640 × 480 (18 KB)Kpengboy (talk | contribs){{Information |Description=Graph of the function <math>\operatorname{atan2}(i \sin \theta, \cos \theta)</math>, as <i>θ</i> ranges from 0 to 2<i>π</i>. Notice the discontinuity at <i>θ</i> = <i>π</i>. |Source=*File:Atan2.PNG |Date=2010-05-18 02:

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

  • Usage on zh.wikipedia.org