These are the familiar sin
, cos
, and tan
functions.
The arguments to all of these functions are in units of radians; recall
that pi radians equals 180 degrees.
The math library doesn't define a symbolic constant for pi, but you can define your own if you need one:
#define PI 3.14159265358979323846264338327
You can also compute the value of pi with the expression acos
(-1.0)
.
-1
to 1
.
-1
to 1
.
The following errno
error conditions are defined for this function:
ERANGE
tan
sets errno
to ERANGE
and returns
either positive or negative HUGE_VAL
.
Go to the first, previous, next, last section, table of contents.