R: Strange trig function behavior

后端 未结 5 1207
独厮守ぢ
独厮守ぢ 2021-01-19 05:48

As a Matlab user transitioning to R, I have ran across the problem of applying trigonometric functions to degrees. In Matlab there are trig functions for both radians and de

5条回答
  •  心在旅途
    2021-01-19 06:09

    This is a floating point representation error. See Chapter 1 of http://lib.stat.cmu.edu/s/Spoetry/Tutor/R_inferno.pdf

提交回复
热议问题