asinh, asinhf, asinhl
Calcula o seno hiperbólico inverso.
Sintaxe
double asinh( double x );
float asinhf( float x );
long double asinhl( long double x );
#define asinh(X) // Requires C11 or higher
float asinh( float x ); // C++ only
long double asinh( long double x ); // C++ only
Parâmetros
x
Valor de ponto flutuante.
Valor Retornado
As funções asinh retornam o seno hyberbolic inverso (seno hiperbólico de arco) de x. Essa função é válida no domínio de ponto flutuante. Se x for um erro Nan, indefinido ou infinito, o mesmo valor será retornado.
Entrada | Exceção SEH | _matherr Exception |
---|---|---|
± QNAN, IND, INF | nenhum | nenhum |
Comentários
Ao usar o C++, você pode chamar sobrecargas de asinh que usam e retornam float
long double
valores. Em um programa C, a menos que você esteja usando a < macro tgmath. h > para chamar essa função, o asinh sempre pega e retorna double
.
Se você usar a < macro tgmath. h >asinh()
, o tipo do argumento determinará qual versão da função está selecionada. Consulte tipo-matemática genérica para obter detalhes.
Por padrão, o estado global dessa função tem como escopo o aplicativo. Para alterar isso, consulte estado global no CRT.
Requisitos
Função | Cabeçalho C necessário | Cabeçalho C++ necessário |
---|---|---|
asinh, asinhf, asinhl | <math.h> | <cmath > ou < Math. h> |
macro asinh () | <tgmath. h> |
Para obter mais informações sobre compatibilidade, consulte Compatibilidade.
Exemplo
// crt_asinh.c
// Compile by using: cl /W4 crt_asinh.c
// This program displays the hyperbolic sine of pi / 4
// and the arc hyperbolic sine of the result.
#include <math.h>
#include <stdio.h>
int main( void )
{
double pi = 3.1415926535;
double x, y;
x = sinh( pi / 4 );
y = asinh( x );
printf( "sinh( %f ) = %f\n", pi/4, x );
printf( "asinh( %f ) = %f\n", x, y );
}
sinh( 0.785398 ) = 0.868671
asinh( 0.868671 ) = 0.785398
Consulte também
Suporte de ponto flutuante
acosh, acoshf, acoshl
atanh, atanhf, atanhl
cosh, coshf, coshl
sinh, sinhf, sinhl
tanh, tanhf, tanhl