From WikiChip
Difference between revisions of "mirc/identifiers/$hypot"
Maroonbells (talk | contribs) (created content for empty page) |
(→Synopsis) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{mirc title|$hypot Identifier}}'''$hypot''' | + | {{mirc title|$hypot Identifier}}'''$hypot''' returns the hypotenuse for the other 2 sides of a right triangle. |
+ | |||
== Synopsis == | == Synopsis == | ||
− | < | + | <source lang="mIRC">$hypot(<A>,<B>)</source> |
== Switches == | == Switches == | ||
Line 8: | Line 9: | ||
== Parameters == | == Parameters == | ||
− | |||
− | |||
− | Doesn't matter which order the short sides are given. | + | * '''A''' - One of the shorter sides of the right triangle |
+ | * '''B''' - The other of the shorter sides of the right triangle | ||
+ | |||
+ | Doesn't matter which order the short sides are given. You can use the letter 'e' or 'd' as *10^N, $hypot(5e6,1) = $hypot($calc(5*10^6),1) | ||
== Properties == | == Properties == | ||
− | |||
None | None | ||
== Example == | == Example == | ||
− | |||
<source lang="mIRC">//var %a 3 | var %b 4 | echo -a $hypot(%a,%b) is the same as $sqrt( $calc( %a ^2 + %b ^2 ) ) | <source lang="mIRC">//var %a 3 | var %b 4 | echo -a $hypot(%a,%b) is the same as $sqrt( $calc( %a ^2 + %b ^2 ) ) | ||
</source> | </source> | ||
Line 38: | Line 38: | ||
* [[List of identifiers - mIRC]] | * [[List of identifiers - mIRC]] | ||
{{mIRC identifier list}} | {{mIRC identifier list}} | ||
+ | [[Category:mIRC identifiers|hypot]] |
Latest revision as of 16:01, 16 August 2018
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$hypot returns the hypotenuse for the other 2 sides of a right triangle.
Synopsis[edit]
$hypot(<A>,<B>)
Switches[edit]
None
Parameters[edit]
- A - One of the shorter sides of the right triangle
- B - The other of the shorter sides of the right triangle
Doesn't matter which order the short sides are given. You can use the letter 'e' or 'd' as *10^N, $hypot(5e6,1) = $hypot($calc(5*10^6),1)
Properties[edit]
None
Example[edit]
//var %a 3 | var %b 4 | echo -a $hypot(%a,%b) is the same as $sqrt( $calc( %a ^2 + %b ^2 ) )
Compatibility[edit]
Added: mIRC v7.33
Added on: 27 May 2014
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