From WikiChip
Difference between revisions of "mirc/identifiers/$sinh"
< mirc‎ | identifiers

(Created content for empty page)
 
(Example)
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
$sin(N) returns the hyperbolic sine (hypersine) of an angle of N radians
+
{{mirc title|$sinh Identifier}}'''$sinh''' returns the hyperbolic sine (hypersine) of an angle of N radians.
 +
 
  
 
== Synopsis ==
 
== Synopsis ==
<pre>$sinh(<N>)[.deg]</pre>
+
<source lang="mIRC">$sinh(<N>)[.deg]</source>
  
== Switches ==
+
== Parameters ==
None
+
* '''N''' - This is the angle in radians for which you wish to retrieve the hypersine.
  
== Parameters ==
+
You can use the letter 'e' or 'd' as *10^N, $sinh(5e6) = $sinh($calc(5*10^6))
<span style="display: inline-block; width: 50px;">'''N'''</span>This is the angle in radians for which you wish to retrieve the hypersine.
 
  
 
== Properties ==
 
== Properties ==
 
+
* '''deg''' - Sees N as degrees in a 360 degree circle instead of radians.
<span style="display: inline-block; width: 50px;">'''deg'''</span>Sees N as degrees in a 360 degree circle instead of radians.
 
  
 
== Example ==
 
== Example ==
  
<pre>//echo -a There are 2x pi radians in a circle, so a radian is $calc(360 / (2*$pi) ) degrees
+
<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
</pre>
+
</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 ==
Line 32: Line 31:
 
* {{mIRC|$sin}}
 
* {{mIRC|$sin}}
 
* {{mIRC|$asin}}
 
* {{mIRC|$asin}}
* {{mIRC|$sinh}}
 
 
* {{mIRC|$tan}}
 
* {{mIRC|$tan}}
 
* {{mIRC|$atan}}
 
* {{mIRC|$atan}}
Line 40: Line 38:
 
{{mIRC identifier list}}
 
{{mIRC identifier list}}
  
[[Category:MIRC identifiers]]
+
[[Category:mIRC identifiers|sinh]]

Latest revision as of 17:03, 16 August 2018

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

[Expand]
v · d · e mIRC identifier list