[GiNaC-list] using modulo and expanding

Kostas Patsakis kpatsak at gmail.com
Thu Dec 29 21:22:07 CET 2005


is there a way to use modulo over an expression?
for example:
3*k1^2+4*k1*k2+1231231*k1 mod 2=
k1^2+k1

all I really want is to work with polynomials over Z_2
so with subs I can do subs(a,$1^2=$1)
but some times it's not enough cause I might run into something with power
more than 2 would subs(a,$1^$2=$1) be enough???
I'm not using ginsh but c++
any help???
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cebix.net/pipermail/ginac-list/attachments/20051229/f4576466/attachment.html


More information about the GiNaC-list mailing list