This wiki is closed in favour of the new wiki. Information shown is likely to be very out of date. |
Difference between revisions of "Template:Atan2"
From Discovery Wiki
Jump to navigationJump to search (Right.) |
m |
||
Line 1: | Line 1: | ||
+ | <noinclude>== Usage == | ||
+ | |||
+ | :<nowiki>{{atan2|y{{=}}a real number|x{{=}}a real number|cut{{=}}an integer}}</nowiki> | ||
+ | |||
+ | or | ||
+ | |||
+ | :<nowiki>{{atan2|a real number|a real number|an integer}}</nowiki></noinclude> | ||
<noinclude><!-- works fine --><!-- Returns angle in (-pi, +pi] (default) or [0, 2*pi) --></noinclude><includeonly>{{ifnum| {{{y|{{{1|NAN}}}}}}{{{x|{{{2|NAN}}}}}}<!-- {{{cut|{{{3|1}}}}}} odd (for 1*pi, default) or even (for 2*pi) --> | <noinclude><!-- works fine --><!-- Returns angle in (-pi, +pi] (default) or [0, 2*pi) --></noinclude><includeonly>{{ifnum| {{{y|{{{1|NAN}}}}}}{{{x|{{{2|NAN}}}}}}<!-- {{{cut|{{{3|1}}}}}} odd (for 1*pi, default) or even (for 2*pi) --> | ||
| {{#switch: {{#expr: 3*{{sgn| {{{y|{{{1}}}}}} }} + {{sgn| {{{x|{{{2}}}}}} }} }} | | {{#switch: {{#expr: 3*{{sgn| {{{y|{{{1}}}}}} }} + {{sgn| {{{x|{{{2}}}}}} }} }} |
Revision as of 12:31, 8 April 2013
Usage
- {{atan2|y{{=}}a real number|x{{=}}a real number|cut{{=}}an integer}}
or
- {{atan2|a real number|a real number|an integer}}