Documentation of lognegint:
If `true' implements the rule `log(-n)' -> `log(n)+%i*%pi' for `n'
a positive integer.
%i is not a positive integer, so the behavior is as advertised as far as I
can tell.
-s
On Tue, Feb 21, 2012 at 12:10, John Lapeyre <lapeyre.math122a at gmail.com>wrote:
> On 02/21/2012 05:43 PM, Henry Baker wrote:
> > But I asked about log(-%i), which should be pretty non-controversial.
>
> Looks like even the behavior advertised by ? log is
> broken...?
>
> Maxima 5.26.0 http://maxima.sourceforge.net
> using Lisp GNU Common Lisp (GCL) GCL 2.6.7 (a.k.a. GCL)
> (%i1) lognegint;
> (%o1) false
> (%i2) log(-%i);
> (%o2) log(-%i)
> (%i3) lognegint:true;
> (%o3) true
> (%i4) log(-%i);
> (%o4) log(-%i)
>