File:Atan2 circle.svg

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

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

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

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[edit]

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.

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 (talk | contribs){{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:

File usage on other wikis

The following other wikis use this file: