R cos/sin/tan函数给出的结果与我的计算器不同
如果我进去R cos/sin/tan函数给出的结果与我的计算器不同,r,R,如果我进去 cos(90) 我明白了 但我的计算器给出 0 我不明白 ?cos 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. 明显?来自帮助(Trig): 对于标准版本(即
cos(90)
我明白了
但我的计算器给出
0
我不明白
?cos
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.
明显?来自帮助(Trig)
:
对于标准版本(即,直角为π/2),角度以弧度为单位,而不是以度为单位;对于cospi
等,角度以“半旋转”为单位
请注意:
> pi
[1] 3.141593
读入度和弧度之间的差异。。。
> cos(pi)
[1] -1
> cos(2*pi)
[1] 1
> pi
[1] 3.141593