Hmm…isn’t this really just a bug in the test program?

It just steps by a constant amount regardless of the number of iterations, so greater number of iterations increases the range of inputs to way beyond what is reasonable for sin()/cos() and triggering the range reduction.

Easy fix: divide whatever your step size by the number of iterations.

Hmm…isn’t this really just a bug in the test program?

It just steps by a constant amount regardless of the number of iterations, so greater number of iterations increases the range of inputs to way beyond what is reasonable for sin()/cos() and triggering the range reduction.

Easy fix: divide whatever your step size by the number of iterations.