Namespaces
Variants
Actions

std::asinh, std::asinhf, std::asinhl

From cppreference.com
< cpp‎ | numeric‎ | math
 
 
 
 
Defined in header <cmath>
(1)
float       asinh ( float num );

double      asinh ( double num );

long double asinh ( long double num );
(until C++23)
/*floating-point-type*/
            asinh ( /*floating-point-type*/ num );
(since C++23)
(constexpr since C++26)
float       asinhf( float num );
(2) (since C++11)
(constexpr since C++26)
long double asinhl( long double num );
(3) (since C++11)
(constexpr since C++26)
SIMD overload (since C++26)
Defined in header <simd>
template< /*math-floating-point*/ V >

constexpr /*deduced-simd-t*/<V>

            asinh ( const V& v_num );
(S) (since C++26)
Additional overloads (since C++11)
Defined in header <cmath>
template< class Integer >
double      asinh ( Integer num );
(A) (constexpr since C++26)
1-3) Computes the inverse hyperbolic sine of num. The library provides overloads of std::asinh for all cv-unqualified floating-point types as the type of the parameter.(since C++23)
S) The SIMD overload performs an element-wise std::asinh on v_num.
(See math-floating-point and deduced-simd-t for their definitions.)
(since C++26)
A) Additional overloads are provided for all integer types, which are treated as double.
(since C++11)

Contents

[edit] Parameters

num - floating-point or integer value

[edit] Return value

If no errors occur, the inverse hyperbolic sine of num (sinh-1
(num)
, or arsinh(num)), is returned.

If a range error occurs due to underflow, the correct result (after rounding) is returned.

[edit] Error handling

Errors are reported as specified in