erf(3) Library Functions Manual erf(3) NOME erf, erff, erfl - funcao de erro BIBLIOTECA Biblioteca matematica (libm, -lm) SINOPSE #include double erf(double x); float erff(float x); long double erfl(long double x); Requisitos de macro de teste de recursos para o glibc (consulte feature_test_macros(7)): erf(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE || /* Desde o glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE erff(), erfl(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* Desde o glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE DESCRICAO These functions return the error function of x, defined as erf(x) = 2/sqrt(pi) * integral de 0 a x de exp(-t*t) dt VALOR DE RETORNO On success, these functions return the value of the error function of x, a value in the range [-1, 1]. Se x e um NaN, um NaN e retornado. Se x e +0 (-0), +0 (-0) e retornado. If x is positive infinity (negative infinity), +1 (-1) is returned. If x is subnormal, a range error occurs, and the return value is 2*x/sqrt(pi). ERROS Consulte math_error(7) para obter informacoes sobre como determinar se ocorreu um erro ao chamar essas funcoes. Os seguintes erros podem ocorrer: Range error: result underflow (x is subnormal) Uma excecao de ponto flutuante de estouro negativo (FE_OVERFLOW) e levantada. Estas funcoes nao definem errno. ATRIBUTOS Para uma explicacao dos termos usados nesta secao, consulte attributes(7). +--------------------------------------------+---------------+---------+ |Interface | Atributo | Valor | +--------------------------------------------+---------------+---------+ |erf(), erff(), erfl() | Thread safety | MT-Safe | +--------------------------------------------+---------------+---------+ PADROES C11, POSIX.1-2008. HISTORICO C99, POSIX.1-2001. A variante retornando double tambem esta em conformidade com SVr4, 4.3BSD. VEJA TAMBEM cerf(3), erfc(3), exp(3) TRADUCAO A traducao para portugues brasileiro desta pagina man foi criada por Marcelo D. Beckmann e Andre Luiz Fassone Esta traducao e uma documentacao livre; leia a Licenca Publica Geral GNU Versao 3 ou posterior para as condicoes de direitos autorais. Nenhuma responsabilidade e aceita. Se voce encontrar algum erro na traducao desta pagina de manual, envie um e-mail para a lista de discussao de tradutores . Linux man-pages 6.06 31 outubro 2023 erf(3)