From WikiChip
Difference between revisions of "mirc/identifiers/$sinh"
(→Parameters) |
(→Example) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
== Synopsis == | == Synopsis == | ||
− | < | + | <source lang="mIRC">$sinh(<N>)[.deg]</source> |
== Parameters == | == Parameters == | ||
* '''N''' - This is the angle in radians for which you wish to retrieve the hypersine. | * '''N''' - This is the angle in radians for which you wish to retrieve the hypersine. | ||
− | You can use the letter 'e' or ' | + | You can use the letter 'e' or 'd' as *10^N, $sinh(5e6) = $sinh($calc(5*10^6)) |
== Properties == | == Properties == | ||
− | + | * '''deg''' - Sees N as degrees in a 360 degree circle instead of radians. | |
== Example == | == Example == | ||
− | < | + | <source lang="mIRC">//echo -a There are 2x pi radians in a circle, so a radian is $calc(360 / (2*$pi) ) degrees |
//var %e 2.718281 | var %angle $calc( 30 * $pi / 180) | echo -a $sinh(%angle) same as $calc( ((%e ^ %angle) - (%e ^ (0 - %angle) )) /2 ) | //var %e 2.718281 | var %angle $calc( 30 * $pi / 180) | echo -a $sinh(%angle) same as $calc( ((%e ^ %angle) - (%e ^ (0 - %angle) )) /2 ) | ||
//var %angle 30 | echo -a $sinh(%angle).deg same as $sinh( $calc( %angle * $pi / 180) ) except for rounding | //var %angle 30 | echo -a $sinh(%angle).deg same as $sinh( $calc( %angle * $pi / 180) ) except for rounding | ||
− | </ | + | </source> |
− | Unlike {{mIRC|$sin}}, $sinh(N degrees).deg is not the same as $sinh( N + 360 degrees).deg | + | Unlike {{mIRC|$sin}}, <source lang="mIRC">$sinh(N degrees).deg</source> is not the same as <source lang="mIRC">$sinh( N + 360 degrees).deg</source> |
== Compatibility == | == Compatibility == |
Latest revision as of 16:03, 16 August 2018
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$sinh returns the hyperbolic sine (hypersine) of an angle of N radians.
Synopsis[edit]
$sinh(<N>)[.deg]
Parameters[edit]
- N - This is the angle in radians for which you wish to retrieve the hypersine.
You can use the letter 'e' or 'd' as *10^N, $sinh(5e6) = $sinh($calc(5*10^6))
Properties[edit]
- deg - Sees N as degrees in a 360 degree circle instead of radians.
Example[edit]
//echo -a There are 2x pi radians in a circle, so a radian is $calc(360 / (2*$pi) ) degrees //var %e 2.718281 | var %angle $calc( 30 * $pi / 180) | echo -a $sinh(%angle) same as $calc( ((%e ^ %angle) - (%e ^ (0 - %angle) )) /2 ) //var %angle 30 | echo -a $sinh(%angle).deg same as $sinh( $calc( %angle * $pi / 180) ) except for roundingUnlike $sin,
$sinh(N degrees).deg
is not the same as $sinh( N + 360 degrees).deg
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