sin 函数
Sine of an argument in radians
正弦,一个弧度的自变量。
Syntax
语法
Y = sin(X)
Description
描述
The sin function operates element-wise on arrays. The function's domains and ranges include complex values. All angles are in radians.
Sin(正弦)函数操作阵列元素方法。函数的区域和范围包括复数。所有弧度方面。
Y = sin(X) returns the circular sine of the elements of X.
Y=sin(X)返回X的元素的圆正弦曲线。
Examples
例如
Graph the sine function over the domain 。
正弦曲线在区间上的函数图像。
x = -pi:0.01:pi;
plot(x,sin(x)), grid on
The expression sin(pi) is not exactly zero, but rather a value the size of the floating-point accuracy eps, because pi is only a floating-point approximation to the exact value of 。
表达式sin(pi)不是确切的零,但是相当于一个浮点精度eps的大小的值,因为pi仅仅是一个浮点逼近的强制值。
Definition
定义
The sine can be defined as
正弦曲线能够被定义为
Algorithm
算法
sin 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.
正弦曲线使用FDLIBM,其是在sunsoft发展,一个sun microsystems,inc。公司,通过KwokC.Ng,和其他人。关于FDLIBM的信息,查阅http://www.netlib.org.