I am looking for a mathematical library to perform some elementary calculus, namely, polynomials in a ring of integers, say Z[X]/nZ. Nothing huge. Just to get the class in Z/nZ, say mod.(-1,3) == 2
, I need to do something like:
mod = fn x,n -> rem(rem(x,n)+n,n) end
Is there something?