Darwin Help

Back to Index

tan

Function tan


Calling Sequence  tan(x)
Parameters
NameTypeDescription

x a numerical value 
Return Type  numeric
Synopsis This function computes the trigonometric tangent function defined by: tan(x) = sin(x)/cos(x). tan(x) has a simple poles at x=Pi/2+n*Pi.
References Handbook of Mathematical Functions, M. Abramowitz and I. Stegun, Ch 4.3
Examples
> tan(0);
0
> tan(Pi/4);
1.0000
> tan(-Pi);
1.2246e-16
See also arcsin,   arctan,   cos,   sin