sympy/sympy — pull request #834 by miham (2011-12-08 20:49:37+00:00)
Title: Add class Mod for modulo operation

This pull request is based on PR 442 by @renatocoutinho. I implemented recommendations from that PR. See also issue 2490.

Here are some examples from isympy that show the functionality now available:

```python
In [1]: x % 4.2
Out[1]: Mod(x, 4.2)

In [2]: Mod(4, 3, evaluate=False)
Out[2]: Mod(4, 3)

In [3]: _.doit()
Out[3]: 1

In [4]: 5 % 3
Out[4]: 2
```