#386 simpexpt problem: sign called on imag arg

closed
nobody
5
2008-03-08
2003-08-15
Stavros Macrakis
No

The expression (-(-1)^(1/6))^(1/2) gives the error
SIGN called on an imaginary argument

This looks a lot like bug report 711885, except that in
this case the expression causing the problem was
generated directly from valid user input, not by another
routine (in that case rootscontract) which created an
incorrectly simplified internal result.

Discussion

  • Logged In: YES
    user_id=588346

    Maxima 5.9.0 gcl 2.5.0 mingw32 Windows 2000 Athlon

     
  • Robert Dodier
    Robert Dodier
    2006-07-10

    Logged In: YES
    user_id=501686

    Still present in 5.9.3cvs.

     
  • Robert Dodier
    Robert Dodier
    2006-07-10

    • labels: --> Lisp Core - Simplification
     
  • Dan Gildea
    Dan Gildea
    2008-03-08

    Logged In: YES
    user_id=1797506
    Originator: NO

    Fixed in simp.lisp rev 1.52.

    (%i3) (-(-1)^(1/6))^(1/2);
    (%o3) sqrt(-(-1)^(1/6))

     
  • Dan Gildea
    Dan Gildea
    2008-03-08

    • status: open --> closed