Closed axkr closed 5 years ago
By changing my IExpr#isZERO()
implementation for symbolic expressions this issue seemed to be solved.
To simplify such expressions one should construct an appropriate transcendent and algebraic extension field which is then used as coefficient ring of the polynomials. Otherwise expressions not identical to 0 are not considered to be zero.
Using JAS 2.6.5961
For symbolic expressions the
a.multiply(ci)
inGenPolynomial#quotientRemainder()
could return0
or a more complicated expression which must be tested for0
.Example for a complicated 0 expression:
(e/Sqrt[-e/d]+d*Sqrt(-e/d))/Sqrt(-e/d)
In this case the while loop in the code below will never stop. Could JAS somehow handle this case? For example with testing for
a.isZERO()