Programar em C/Operações matemáticas (Avançado): diferenças entre revisões
[edição não verificada] | [edição não verificada] |
Conteúdo apagado Conteúdo adicionado
Sem resumo de edição |
Sem resumo de edição |
||
Linha 1:
{{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].
Linha 21 ⟶ 20:
===
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.
Linha 34 ⟶ 33:
===
The <code>cos</code>, <code>sin</code>, and <code>tan</code> functions return the cosine, sine, and tangent of the argument, expressed in radians.
|