[ANSYS, Inc. Logo] return to home search
next up previous contents index

A.13.1 Trigonometric Functions

The trigonometric functions shown below are computed (with one exception) for the variable x. Both the function and the argument are double-precision real variables. The function acos(x) is the arccosine of the argument x, cos $^{-1}(x)$. The function atan2(x,y) is the arctangent of x/y, tan $^{-1}(x/y)$. The function cosh(x) is the hyperbolic cosine function, etc.


double acos (double x); returns the arccosine of $x$
double asin (double x); returns the arcsine of $x$
double atan (double x); returns the arctangent of $x$
double atan2 (double x, double y); returns the arctangent of $x/y$
double cos (double x); returns the cosine of $x$
double sin (double x); returns the sine of $x$
double tan (double x); returns the tangent of x
double cosh (double x); returns the hyperbolic cosine of $x$
double sinh (double x); returns the hyperbolic sine of $x$
double tanh (double x); returns the hyperbolic tangent of $x$
   


next up previous contents index Previous: A.13 C Library Functions
Up: A.13 C Library Functions
Next: A.13.2 Miscellaneous Mathematical Functions
Release 12.0 © ANSYS, Inc. 2009-01-14