Theano/Theano — pull request #1601 by joschu (2013-11-13 04:35:50+00:00)
Title: mod derivative

It's to take the derivative of the mod operator, e.g. when the first argument is an angle variable.

It wasn't obvious to me how to add a proper unit test, but here's a test script:
https://gist.github.com/joschu/7443684