Apparently domain:complex
doesn't play well with this limit.
Maxima 5.39.0 http://maxima.sourceforge.net
using Lisp ECL 16.1.2
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) limit((x*(4/log(x))^(2*log(x)/log(log(x)))),x,inf);
(%o1) 0
(%i2) domain:complex;
(%o2) complex
(%i3) limit((x*(4/log(x))^(2*log(x)/log(log(x)))),x,inf);
Condition of type: SIMPLE-CONDITION
Undefined limit product $INF * $ZEROB in lim-times
Available restarts:
1. (CONTINUE) Return from BREAK.
2. (MACSYMA-QUIT) Maxima top-level
Top level.
> ^D
Originally reported at https://trac.sagemath.org/ticket/23328
The function
lim-times
, defined inhayat
does a "break" when it should, I think calltay-error
. I've experimented with this and a few other changes and now I get a limit nounform--that's not ideal, but it's an improvementI don't entirely understand
lim-times
,, and my impression is that it has other bugs; for example I'd say%o1
is OK, but%o2
should be$inf
, not$minf
Here is a change that allow this limit to return a limit nounform--I changed the break to a call to tay-error
Second thought: I think it's better to put an
errcatch
on the call to$taylor
in the functioncalculate-series
(defined in limit.lisp). Unlike only changinglim-times
, this change will catch all errors from$taylor,
not just the error from . Again, this proposed change doesn't fix the bug, but it allows the limit to return a nounform. And that's an improvement.