tan
Returns the tangent for each element of the argument (in radians).
Syntax
R = tan(a)
Inputs
- a
- The angle in radians.
Outputs
- R
- scalar | vector | matrix
Examples
Scalar
input:
R = tan(pi/3)
R = 1.73205081
Matrix
input:
R = tan([pi/6, -pi/4; -pi/3, pi/2])
R = [Matrix] 2 x 2
5.77350e-01 -1.00000e+00
-1.73205e+00 1.63312e+16