File:Atan2-discontinuity.svg

Uploaded by Kpengboy
Upload date 2010-05-19T06:09:45Z
MIME type image/svg+xml
Dimensions 640 × 480 px
File size 19.8 KB

Summary

Description
English: Graph of the function atan2⁡(sin⁡θ,cos⁡θ), as θ ranges from 0 to 2π. Notice the discontinuity at θ = π.
Date
Source Own work based on: Atan2.PNG:  by Adam majewski
Author Kpengboy
SVG development
InfoField
 The SVG code is valid.
 This plot was created with gnuplot.
  This plot uses embedded text that can be easily translated using a text editor.

Licensing

Kpengboy, the copyright holder of this work, hereby publishes 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.
Attribution:
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

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

 # 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"

Original upload log

This image is a derivative work of the following images:

  • 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

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

image/svg+xml

ed2b8df81e45c79cd98cf9ffd764dbb92fe01f6c

20,239 byte

480 pixel

640 pixel