Recent changes to 350: asksign(a^b) WRONG!http://sourceforge.net/p/maxima/bugs/350/2003-07-11T21:50:19Zasksign(a^b) WRONG!2003-07-11T21:50:19Z2003-07-11T21:50:19ZStavros Macrakishttp://sourceforge.net/u/macrakis/http://sourceforge.netdbf01317f96806c3bc7b0889e0bc56c7fc1ccdca
asksign\(a^b\);
Is a pos neg or zero?
neg;
=&gt; neg
It does not ask whether b is an integer, or if it's even or
odd\!\!\!
I believe the correct behavior is:
if b is an even integer =&gt; pos
if b is an odd integer =&gt; neg
if b is not an integer, ask user about the sign of a^b
directly -- I suppose we could ask if b is rational, and if
so whether it is even/odd \(pos\), odd/odd \(neg\), or
odd/even \(undefined -- is actually complex\), but why
get into that mess?