What about implementing an expansion of sin like this:
(sin x) => (%sin (mod x (* 2 pi)))
? I don't know how sin and cos are implemented, but the standard implementation using power series converge faster for smaller values (am I right?), so this could be a good thing. Or am I missing something?
What about implementing an expansion of sin like this:
(sin x) => (%sin (mod x (* 2 pi)))
? I don't know how sin and cos are implemented, but the standard implementation using power series converge faster for smaller values (am I right?), so this could be a good thing. Or am I missing something?