Loading...
Select Version
&pagelevel(4)&pagelevel
Definition | #include <math.h> double tan(double x); Tese functions calculate the trigonometric function tangent within the permissible range of floatingpoint numbers. x specifies the angle in radians. | |
Returnwert |
| for any valid floating-point number x. |
| depending on the function type and the sign of x, if an overflow occurs. In addition, | |
Example | The following program outputs the tangent of an input number. #include <math.h> #include <stdio.h> int main(void) { double x; printf("Please enter a number :\n"); scanf("%lf", &x); printf("The tangent of %g is %g \n", x, tan(x)); return 0; } | |
See also | sin, cos, tanh, atan |