|
|
===As funções <code>atan</code> e <code>atan2</code>===
TheAs funções <code>atan</code> functionsretornam returno thearco-tangente arctangent of theirdos arguments inem radiansradianos, ande a thefunção <code>atan2</code> functionretorna returno the arctangentarco-tangente ofde <code>y/x</code> inem radiansradianos. TheAs funções <code>atan</code> functions return aretornam valueo invalor theno rangeintervalo [-π/2,+π/2] (thea razão reasonpelo whyque ±π/2 areestá includedincluido inno theintervalo rangeé isporque becauseos thevalores floating-pointdecimais valuepode mayrepresentar represento infinityinfinito, ande atan(±∞) = ±π/2); theas funções <code>atan2</code> functionsretornam returno a value invalor theno rangeintervalo [-π,+π]. ForPara a função <code>atan2</code>, aum "domain error" maypode occurocorrer ifse bothos argumentsdois argumentos areforem zero.
#include <math.h>
long double atanl(long double x); /* C99 */
long double atan2l(long double y, long double x); /* C99 */
===As funções <code>cos</code>, <code>sin</code> e <code>tan</code>===
|