In Maxima 5.35.1, this worked:
(%i1) load("abs_integrate")$
(%i2) integrate(1 / (1 + abs(x-5)), x, -5, 6);
(%o2) log(11) + log(2)
in 5.38.1, one gets (both with ECL and with SBCL):
(%i1) load("abs_integrate")$
(%i2) integrate(1 / (1 + abs(x-5)), x, -5, 6);
(%o2) limit %if(- (x - 5) > 0, - log(6 - x), log(abs(x - 4)))
x -> 6-
- limit %if(- (x - 5) > 0, - log(6 - x), log(abs(x - 4)))
x -> - 5+
The change in behavior appears to be due to commit af38d28 as determined by git bisect.
Not sure what's going on here. git log says:
Dan, can you take a look at this one? I wasn't able to figure out what's going on.
The change in behavior seems to be caused by a change in the orderlessp order
of the expressions "x" and "signum(x-5)". Before we had
whereas now we have
and abs_integrate does not do well with this more complex expression.
I think that the current behavior is not technically incorrect, although it is ugly.
Any further changes to orderlessp should take into account bug [#3072].
Related
Bugs:
#3072Fixed by [3ca423]. Appended regression test. Closing ticket.
Related
Commit: [3ca423]