tan
Trigonometric tangent function.
Syntax
tan(expr)
Argument
- expr
 - A valid scalar, vector, or matrix expression in radians.
 
Example
| Templex Expression | Results | 
|---|---|
{tan(PI/4)} | 
                                1 | 
                            
{tan( {0, 1, 2} * PI)} | 
                                0, 0, 0 | 
                            
{tan( { {0, 1}, {0.25, 0.75} } *
                                    PI)} | 
                                {0, 0}, {1, -1} | 
                            
Comments
expr is measured in radians.
If expr is a scalar, the result is a scalar which is the trigonometric tangent of expr.
If expr is a vector, the result is a vector of the same dimensions containing a trigonometric tangent for each element of expr.
If expr is a matrix, the result is a matrix of the same dimensions containing a trigonometric tangent function for each element of expr.