Programar em C/Operações matemáticas (Avançado): diferenças entre revisões
Saltar para a navegação
Saltar para a pesquisa
Programar em C/Operações matemáticas (Avançado) (editar)
Revisão das 18h11min de 2 de março de 2007
, 18h11min de 2 de março de 2007sem resumo de edição
Sem resumo de edição |
Sem resumo de edição |
||
{{TopNav|prev=Operações matemáticas (Básico)|next=Controle de fluxo}}
{{emtraducao2}}
As funções podem ser agrupadas nas seguintes categorias:
==Funções Trigonométricas==
▲===The <code>acos</code> and <code>asin</code> functions===
The <code>acos</code> functions return the arccosine of their arguments in radians, and the <code>asin</code> functions return the arcsine of their arguments in radians. All functions expect the argument in the range [-1,+1]. The arccosine returns a value in the range [0,π]; the arcsine returns a value in the range [-π/2,+π/2].
===
The <code>atan</code> functions return the arctangent of their arguments in radians, and the <code>atan2</code> function return the arctangent of <code>y/x</code> in radians. The <code>atan</code> functions return a value in the range [-π/2,+π/2] (the reason why ±π/2 are included in the range is because the floating-point value may represent infinity, and atan(±∞) = ±π/2); the <code>atan2</code> functions return a value in the range [-π,+π]. For <code>atan2</code>, a domain error may occur if both arguments are zero.
===
The <code>cos</code>, <code>sin</code>, and <code>tan</code> functions return the cosine, sine, and tangent of the argument, expressed in radians.
|