From WikiChip
Difference between revisions of "mirc/identifiers/$atan"
Maroonbells (talk | contribs) (Create content for empty page) |
m |
||
Line 1: | Line 1: | ||
− | {{mirc title|$atan Identifier}}'''$atan''' | + | {{mirc title|$atan Identifier}}'''$atan''' returns the arctangent of N. |
+ | |||
== Synopsis == | == Synopsis == | ||
Line 5: | Line 6: | ||
== Parameters == | == Parameters == | ||
− | |||
<span style="display: inline-block; width: 50px;">'''N'''</span>The tangent in radians for which you want the arc tangent. | <span style="display: inline-block; width: 50px;">'''N'''</span>The tangent in radians for which you want the arc tangent. | ||
== Properties == | == Properties == | ||
− | |||
<span style="display: inline-block; width: 80px;">'''.deg'''</span>Returns the angle as degrees, default is radians. | <span style="display: inline-block; width: 80px;">'''.deg'''</span>Returns the angle as degrees, default is radians. | ||
== Example == | == Example == | ||
− | |||
<source lang="mIRC">//echo -a In right triangle where opposite side is 3 and adjacent is 4, angle is $atan( $calc(3/4) ).deg degrees | <source lang="mIRC">//echo -a In right triangle where opposite side is 3 and adjacent is 4, angle is $atan( $calc(3/4) ).deg degrees | ||
; Returns: In right triangle where opposite side is 3 and adjacent is 4, angle is 36.869898 degrees | ; Returns: In right triangle where opposite side is 3 and adjacent is 4, angle is 36.869898 degrees | ||
Line 31: | Line 29: | ||
{{mIRC compatibility|5.3}} | {{mIRC compatibility|5.3}} | ||
− | == See | + | == See also == |
* {{mIRC|$cos}} | * {{mIRC|$cos}} | ||
* {{mIRC|$acos}} | * {{mIRC|$acos}} | ||
Line 43: | Line 41: | ||
* [[List of identifiers - mIRC]] | * [[List of identifiers - mIRC]] | ||
{{mIRC identifier list}} | {{mIRC identifier list}} | ||
+ | [[Category:mIRC identifiers|atan]] |
Latest revision as of 06:09, 21 September 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$atan returns the arctangent of N.
Synopsis[edit]
$atan(N)[.deg]
Parameters[edit]
NThe tangent in radians for which you want the arc tangent.
Properties[edit]
.degReturns the angle as degrees, default is radians.
Example[edit]
//echo -a In right triangle where opposite side is 3 and adjacent is 4, angle is $atan( $calc(3/4) ).deg degrees ; Returns: In right triangle where opposite side is 3 and adjacent is 4, angle is 36.869898 degrees
//var %i 60 | echo -a %i degrees / tangent $tan(%i).deg / atan $atan( $tan(%i).deg ).deg ; returns 60.000003 instead of 60 because the $tan fraction is limited to 6 places //var %i 45 | echo -a %i degrees / tangent $tan(%i).deg / atan $atan( $tan(%i).deg ).deg //var %i 240 | echo -a %i degrees / tangent $tan(%i).deg / atan $atan( $tan(%i).deg ).deg ; returns angle in the range of -90 - +90 degrees (-pi/2 - +pi/2 radians) //var %i 90 | echo -a %i degrees / tangent $tan(%i).deg / atan $atan( $tan(%i).deg ).deg ; for 90 degrees, returns a VERY BIG NUMBER instead of infinity
Compatibility[edit]
Added: mIRC v5.3
Added on: 13 Dec 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also[edit]
mIRC identifier list