Trig(base)
Trig()所属R语言包:base
Trigonometric Functions
三角函数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
These functions give the obvious trigonometric functions. They respectively compute the cosine, sine, tangent, arc-cosine, arc-sine, arc-tangent, and the two-argument arc-tangent.
这些职能赋予了明显的三角函数。他们分别计算余弦,正弦,正切,反余弦,圆弧正弦,反正切,两个参数的反正切。
用法----------Usage----------
cos(x)
sin(x)
tan(x)
acos(x)
asin(x)
atan(x)
atan2(y, x)
参数----------Arguments----------
参数:x, y
numeric or complex vectors.
数字或复杂的向量。
Details
详情----------Details----------
The arc-tangent of two arguments atan2(y, x) returns the angle between the x-axis and the vector from the origin to (x, y), i.e., for positive arguments atan2(y, x) == atan(y/x).
两个参数的反正切atan2(y, x)返回的X轴和(x, y),即起源矢量之间的角度,积极论证,atan2(y, x) == atan(y/x)。
Angles are in radians, not degrees (i.e., a right angle is π/2).
角的弧度,不度(即直角π/2)。
All except atan2 are internal generic primitive functions: methods can be defined for them individually or via the Math group generic.
除了atan2内部通用的原始功能:可以定义为他们单独或通过Math组通用方法。
复杂的值----------Complex values----------
For the inverse trigonometric functions, branch cuts are defined as in Abramowitz and Stegun, figure 4.4, page 79.
对于反三角函数,分支削减在图4.4,第79页Abramowitz和Stegun,的定义。
For asin and acos, there are two cuts, both along the real axis: (-Inf, -1] and [1, Inf).
asin和acos,有两个削减,沿实轴:(-Inf, -1]和[1, Inf)。
For atan there are two cuts, both along the pure imaginary axis: (-1i*Inf, -1i] and [1i, 1i*Inf).
atan有两个削减,以及纯虚轴:(-1i*Inf, -1i]和[1i, 1i*Inf)。
The behaviour actually on the cuts follows the C99 standard which requires continuity coming round the endpoint in a counter-clockwise direction.
在削减的行为实际上是遵循C99标准要求的连续性新一轮反时针方向的端点。
S4方法----------S4 methods----------
All except atan2 are S4 generic functions: methods can be defined for them individually or via the Math group generic.
所有除了atan2是中S4中通用的功能:方法可以为他们单独或通过Math组通用的定义,。
参考文献----------References----------
The New S Language. Wadsworth & Brooks/Cole.
Mathematical Functions, New York: Dover.<br> Chapter 4. Elementary Transcendental Functions: Logarithmic, Exponential, Circular and Hyperbolic Functions
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|