Updates:
Labels: NeedsReview
Comment #1 on issue 2490 by renato.c...@gmail.com: Create a Mod object for
symbolic modulus (x % y)
http://code.google.com/p/sympy/issues/detail?id=2490
I created a very basic implementation of this, it's pull request 442:
https://github.com/sympy/sympy/pull/442
For now this is more a container than anything else. It does not know how
to simplify anything (only evaluates things if both args are Numbers). For
example
n = Symbol('n', integer=True)
2*n % 2
Mod(2*n, 2)
(n+2) % 2
Mod(2+n, 2)
n = Symbol('n', integer=True, odd=True)
n % 2
Mod(n, 2)
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.