tan

tan(X) computes tangent for each element of X.

Examples

> x = (-pi/2)+0.01:0.02:(pi/2)-0.01

[x:1x157 double]

> plot(x, tan(x))

[ans:1x1 struct]

Resources

See also

atan | atan2 | atan2d | atand | tand | tanh