cra.spad line 1 [edit on github]
This package implements asymptotically efficient Chinese reconstruction
chineseRemainder(lv, lm)
returns a value v
such that, if x
is lv.i
modulo lm.i
for all i
, then x
is v
modulo lm(1)*lm(2)*...*lm(n)
.
chineseRemainder(llv, lm)
returns a list of values, each of which corresponds to the Chinese remainder of the associated element of llv
and lm
. This is more efficient than applying chineseRemainder several times.
modTree(r, l)
is undocumented
multiEuclideanTree(l, r)
is undocumented