6 Aug
2026
6 Aug
'26
1:12 a.m.
On 8/5/26 9:21 AM, Diddens, Christian (UT-TNW) via GiNaC-list wrote:
thanks for the quick fix. I gave it a try, but it introduces new issues: After the patch y*(x+1)^(2.0)*(x+1)^(-1.0) now prints x+1.0*y Same for e.g. y*(x+1)^(0.5)*(x+1)^(0.5), which now is written as x+1.0*y.
I think instead of if (it->coeff.info(info_flags::integer) && (it-
coeff.is_equal(_ex1) || it->coeff.is_equal(_ex_1)))
The patch should read:
if (it->coeff.is_equal(_ex1) || (it->coeff.is_equal(_ex_1) && it-
coeff.info(info_flags::integer)))
Just pushed this onto the master branch. Thanks, Christian! All my best, -richy. -- Richard B. Kreckel <https://in.terlu.de/~kreckel/>