> > It's a bug.
> Is it? After all, the `lognegint' switch is there for a reason :-)
> But of course, it would be nice if Maxima didn't generate a log(-1)
> here.
It is unambiguously a bug. The returned value is equivalent to
-%e*%pi/2, which is the wrong sign. And on the face of it, this is an
"easy" case for limit: the numerator has a finite limit, the
denominator has a finite limit.