tan 函数
Tangent of an argument in radians
正切,一个弧度的自变量。
Syntax
语法
Y = tan(X)
Description
描述
The tan function operates element-wise on arrays. The function's domains and ranges include complex values. All angles are in radians.
tan函数在阵列上的操作元素方法。函数的区域和区间包括复数。所有的弧度中的方面。
Y = tan(X) returns the circular tangent of each element of X.
Y=tan(X)返回X的每个元素的正切。
Examples
例如:
Graph the tangent function over the domain .
正切在区间上的函数图像。
x = (-pi/2)+0.01:0.01:(pi/2)-0.01;
plot(x,tan(x)), grid on
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 .
表达式tan(pi/2)没有认定为无穷大但是作为浮点精度的对等eps 正弦pi仅仅是一个浮点逼近的强制值。
Definition
定义
The tangent can be defined as
正切能够被定义为
Algorithm
算法
tan uses FDLIBM, which was developed at SunSoft, a Sun Microsystems, Inc. business, by Kwok C. Ng, and others. For information about FDLIBM, see http://www.netlib.org.
tan使用FDLIBM,其是在sunsoft发展,一个sun microsystems,inc。公司,通过KwokC.Ng,和其他人。关于FDLIBM的信息,查阅http://www.netlib.org.