This is a file from the Wikimedia Commons

File:Atan2 circle.svg

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Original file(SVG file, nominally 776 × 694 pixels, file size: 37 KB)

Summary

Description
English: Values of atan2 on the unit circle. Note that the value at (-1,0) is always , but it approaches along the bottom half of the circle.
Date
Source self-made using design of the bitmap version
Author Qef
Other versions Bitmap version en:File:Atan2_circle.png (this SVG version doesn't include the textual comment because it's hard to do in MetaPost, and this version will also be useable in other languages.)
SVG development
InfoField
 
The SVG code is valid.
 
This vector image was created with MetaPost.
Source code
InfoField

PostScript code

metapost-source
prologues := 3;
input boxes

beginfig(1);

numeric textscale, outtextscale, radius;
textscale := 2;
outtextscale := 1.5;
radius := 150pt;
dotlabeldiam := 2dotlabeldiam;
labeloffset := 3labeloffset;
numeric s; s = radius * sind(45);

pickup pencircle scaled 1pt;
draw (-1.2radius,0)--(1.2radius,0);

pickup pencircle scaled 2pt;
draw fullcircle scaled 2radius withcolor (0,.5,0);

label.llft(btex$ (-1,0) $etex scaled outtextscale, (-radius,0));
label.lrt(btex$ (1,0) $etex scaled outtextscale, (radius,0));
label.bot(btex$ (0,-1) $etex scaled outtextscale, (0,-radius));
label.top(btex$ (0,1) $etex scaled outtextscale, (0,radius));
label.urt(btex$ 45^\circ $etex scaled outtextscale, (s,s));

vardef dot (expr z) =
  interim linecap:=rounded;
  draw z withpen pencircle scaled dotlabeldiam;
enddef;
dot((0,0));
dot((radius,0));
dot((-radius,0));
dot((0,radius));
dot((0,-radius));
dot((s,s));
dot((-s,s));
dot((s,-s));
dot((-s,-s));

color col;
col := (0,0,.5);
label.ulft(btex$ 0 $etex scaled textscale, (radius,0)) withcolor col;
label.llft(btex$ \pi \over 4 $etex scaled textscale, (s,s)) withcolor col;
label.bot(btex$ \pi \over 2 $etex scaled textscale, (0,radius)) withcolor col;
label.lrt(btex$ 3\pi \over 4 $etex scaled textscale, (-s,s)) withcolor col;
label.urt(btex$  \pi $etex scaled textscale, (-radius,0)) withcolor col;
label.lrt(btex$ -\pi $etex scaled textscale, (-radius,0)) withcolor col;
label.urt(btex$ -3\pi \over 4 $etex scaled textscale, (-s,-s)) withcolor col;
label.top(btex$ -\pi \over 2 $etex scaled textscale, (0,-radius)) withcolor col;
label.ulft(btex$ -\pi \over 4 $etex scaled textscale, (s,-s)) withcolor col;

endfig;
end

Data

mpost fig.mp
ps2pdf -dEPSCrop fig.1 fig.pdf
pstoedit -page 1 -dt -xscale 2 -yscale 2 -f sk fig.pdf fig.sk
inkscape -z --vacuum-defs -f fig.sk -l fig.svg

Licensing

Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

13 July 2009

image/svg+xml

fe2d9ce89f1847d0270aa76499e623717168f545

37,780 byte

694 pixel

776 pixel

File history

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

Date/TimeThumbnailDimensionsUserComment
current13:03, 13 July 2009Thumbnail for version as of 13:03, 13 July 2009776 × 694 (37 KB)Qef{{Information |Description={{en|Values of atan2 on the unit circle. Note that the value at (-1,0) is always <math>\pi</math>, but it approaches <math>-\pi</math> along the bottom half of the circle.}} |Source=self-made using design of the bitmap version

The following page uses this file:

Global file usage

The following other wikis use this file:

  • Usage on fr.wikipedia.org