Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/numeric/math/asinh"

From cppreference.com
< cpp‎ | numeric‎ | math
(/* Equivalent function */ - Equivalent function: even though this is mathematically correct, it is not the way this function is implemented due to loss of precision)
Line 24: Line 24:
  
 
inverse hyperbolic sine of {{tt|arg}}
 
inverse hyperbolic sine of {{tt|arg}}
 
===Equivalent function===
 
{{eq fun cpp | 1=
 
template< class T >
 
T asinh(T arg)
 
{
 
    return std::log(arg + std::sqrt(arg * arg + 1));
 
}
 
}}
 
  
 
===See also===
 
===See also===

Revision as of 04:35, 28 September 2011

Template:cpp/numeric/math/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <cmath>
</td>

<td></td> <td></td> </tr> <tr class="t-dcl ">

<td >
float       asinh( float arg );
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++11 feature </td> </tr> <tr class="t-dcl ">

<td >
double      asinh( double arg );
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++11 feature </td> </tr> <tr class="t-dcl ">

<td >
long double asinh( long double arg );
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++11 feature </td> </tr> Template:ddcl list end

Computes hyperbolic arc sine of arg

Parameters

arg - floating point value

Return value

inverse hyperbolic sine of arg

See also

Template:cpp/numeric/math/dcl list acoshTemplate:cpp/numeric/math/dcl list atanhTemplate:cpp/numeric/math/dcl list sinh