.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk .\" .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu) .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH tan 3 "20 julho 2023" "Linux man\-pages 6.05.01" .SH NOME tan, tanf, tanl \- função tangente .SH BIBLIOTECA Biblioteca matemática (\fIlibm\fP, \fI\-lm\fP) .SH SINOPSE .nf \fB#include \fP .PP \fBdouble tan(double \fP\fIx\fP\fB);\fP \fBfloat tanf(float \fP\fIx\fP\fB);\fP \fBlong double tanl(long double \fP\fIx\fP\fB);\fP .fi .PP .RS -4 Requisitos de macro de teste de recursos para o glibc (consulte \fBfeature_test_macros\fP(7)): .RE .PP \fBtanf\fP(), \fBtanl\fP(): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* Desde o glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi .SH DESCRIÇÃO Estas funções retornam a tangente de \fIx\fP, onde \fIx\fP é dado em radianos. .SH "VALOR DE RETORNO" No caso de sucesso, estas funções retornam a tangente de \fIx\fP. .PP Se \fIx\fP é um NaN, um NaN é retornado. .PP Se \fIx\fP é infinito positivo ou infinito negativo, ocorre um erro de domínio e um NaN é retornado. .PP .\" I think overflow can't occur, because the closest floating-point .\" representation of pi/2 is still not close enough to pi/2 to .\" produce a large enough value to overflow. .\" Testing certainly seems to bear this out. -- mtk, Jul 08 .\" .\" POSIX.1 allows an optional underflow error; .\" glibc 2.8 doesn't do this .\" POSIX.1 an optional range error for subnormal x; .\" glibc 2.8 doesn't do this Se o resultado seria excedido, ocorre um erro de intervalo e as funções retornam \fBHUGE_VAL\fP, \fBHUGE_VALF\fP ou \fBHUGE_VALL\fP, respectivamente, com o sinal matematicamente correto. .SH ERROS Consulte \fBmath_error\fP(7) para obter informações sobre como determinar se ocorreu um erro ao chamar essas funções. .PP Os seguintes erros podem ocorrer: .TP Domain error: \fIx\fP is an infinity \fIerrno\fP é definido com \fBEDOM\fP (mas veja BUGS). Uma exceção de ponto flutuante inválido (\fBFE_INVALID\fP) é levantada. .TP Erro de intervalo: resultado estouro .\" Unable to test this case, since the best approximation of .\" pi/2 in double precision only yields a tan() value of 1.633e16. .\" .I errno .\" is set to .\" .BR ERANGE . Uma exceção de ponto flutuante de estouro (\fBFE_OVERFLOW\fP) é levantada. .SH ATRIBUTOS Para uma explicação dos termos usados nesta seção, consulte \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interface Atributo Valor T{ .na .nh \fBtan\fP(), \fBtanf\fP(), \fBtanl\fP() T} Thread safety MT\-Safe .TE .sp 1 .SH PADRÕES C11, POSIX.1\-2008. .SH HISTÓRICO C99, POSIX.1\-2001. .PP A variante retornando \fIdouble\fP também está de acordo com SVr4, 4.3BSD, C89. .SH BUGS .\" http://sourceware.org/bugzilla/show_bug.cgi?id=6782 Before glibc 2.10, the glibc implementation did not set \fIerrno\fP to \fBEDOM\fP when a domain error occurred. .SH "VEJA TAMBÉM" \fBacos\fP(3), \fBasin\fP(3), \fBatan\fP(3), \fBatan2\fP(3), \fBcos\fP(3), \fBctan\fP(3), \fBsin\fP(3) .PP .SH TRADUÇÃO A tradução para português brasileiro desta página man foi criada por Kenzo Marcelo Okamura , André Luiz Fassone e Rafael Fontenelle . . .PP Esta tradução é uma documentação livre; leia a .UR https://www.gnu.org/licenses/gpl-3.0.html Licença Pública Geral GNU Versão 3 .UE ou posterior para as condições de direitos autorais. Nenhuma responsabilidade é aceita. .PP Se você encontrar algum erro na tradução desta página de manual, envie um e-mail para .MT debian-l10n-portuguese@lists.debian.org a lista de discussão de tradutores .ME .