I read the programming guide as saying that the argument should be within [-pi, pi]. Maybe you get better results that way.
What keeps you from using [font=“Courier New”]sinf()[/font] and [font=“Courier New”]cosf()[/font]? I would assume that some thought has gone into their argument reduction code, so they will probably work better than any ad-hoc solution.
I read the programming guide as saying that the argument should be within [-pi, pi]. Maybe you get better results that way.
What keeps you from using [font=“Courier New”]sinf()[/font] and [font=“Courier New”]cosf()[/font]? I would assume that some thought has gone into their argument reduction code, so they will probably work better than any ad-hoc solution.