C Run-Time Library Reference
tan
tangent
Synopsis
#include <math.h>
double tan(double x);
float tanf(float x);
fract16 tan_fr16(fract16 x);
Description
The
function returns the tangent of the argument
tan
radians, must be in the range [-9099, 9099].
The
tan_fr16
) and π/4 (
(
=0x9B78
values range from
input argument that is outside the defined domain.
Error Conditions
The
function returns zero if the input argument is outside the defined
tan
domain.
Example
#include <math.h>
double y;
y = tan(3.14159/4.0);
See Also
atan,
atan2
3-154
function is only defined for input values between -π/4
). The input argument is in radians. Output
=0x6488
to
0x8000
0x7FFF
/* y = 1.0 */
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
. The library function returns 0 for any
for ADSP-219x DSPs
. The input, in
x
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers