[Solved] cos/sin/tan function gives different result than my calculator [closed]


From help(Trig):

Angles are in radians, not degrees, for the standard versions (i.e., a right angle is π/2), and in ‘half-rotations’ for cospi etc.

> cos(pi)
[1] -1
> cos(2*pi)
[1] 1

Mind that:

> pi
[1] 3.141593

solved cos/sin/tan function gives different result than my calculator [closed]