I am using eplex
and ic
library and trying to solve a problem. I see that the eplex
and ic
provide explicit support for addition,multiplication
and subtraction
but there is no support for modulo
or division
.
More precisely, I have this code :
FirstResult #= (Result[I] mod Val), % Here it gives error because Result[I] is not instantiated.
NewVal is Val+1,
SecondResult #= (Result[I] mod NewVal)
and mod
requires its two arguments to be ground but Result[I]
is not instantiated, rather it has range of values. So my question is how such constraints which involve mod
operation can be delayed.