tan

Returns the tangent of a (in radians).

Syntax

R = tan(a)

Inputs

a
Any valid scalar | vector | matrix in radians.
Type: double | integer
Dimension: scalar | vector | matrix

Outputs

R
scalar | vector | matrix

Examples

Simple scalar input:
R = tan(-0.5)
R = -0.546302
Simple matrix input:
R = tan([-3,.6])
R = [ 0.142547 0.684137 ]
Simple matrix input:
R = tan([i+2,3i-1;i,0.3])
R = [ -0.243458 + 1.16674i, -0.00451714 + 1.00205i; 0.761594i, 0.309336]