From WikiChip
$hypot Identifier - mIRC
< mirc‎ | identifiers

$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]

[Expand]
v · d · e mIRC identifier list