MATLAB Function Reference    
tan, tanh

Tangent and hyperbolic tangent

表示

詳細

The tan and tanh functions operate element-wise on arrays. The functions' domains and ranges include complex values. All angles are in radians.

Y = tan(X) returns the circular tangent of each element of X.

Y = tanh(X) returns the hyperbolic tangent of each element of X.

例題

Graph the tangent function over the domain and the hyperbolic tangent function over the domain

The expression tan(pi/2) does not evaluate as infinite but as the reciprocal of the floating point accuracy eps since pi is only a floating-point approximation to the exact value of .

アルゴリズム

参考

atan, atan2


 symrcm  tempdir