Mark Dickinson <dickinsm at gmail.com> added the comment: Hmm. Isn't sine periodic with period 2*pi, not pi? I'd also suggest making use of remainder_near. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue7770> _______________________________________