#2233 sign of declared imaginary

closed
nobody
5
2011-08-03
2011-07-24
No

(%i6) declare(f,imaginary)$

Should be imaginary, not complex:

(%i7) csign(f(0));
(%o7) complex

OK:

(%i8) declare(g,complex)$

(%i9) csign(g(0));
(%o9) complex

Discussion

  • Barton Willis

    Barton Willis - 2011-07-24
    • labels: --> Lisp Core - Complex
     
  • Dieter Kaiser

    Dieter Kaiser - 2011-08-03

    Sorry, my error. I had a look at sign(log(1/(1+%i)) but not at the original example. To get this error in Maxima 5.25post we have to set logexpand to false:

    (%i1) log(1/(1+%i));
    (%o1) - log(%i + 1)
    (%i2) log(1/(1+%i)),logexpand:false;

    sign: argument cannot be imaginary; found %i
    -- an error. To debug this try: debugmode(true);
    (%i3) build_info();

    Maxima version: 5.25post
    Maxima build date: 21:36 8/3/2011
    Host type: i686-pc-linux-gnu
    Lisp implementation type: SBCL
    Lisp implementation version: 1.0.45

    (%i1) log(1/(1+%i));
    (%o1) - log(%i + 1)
    (%i2) log(1/(1+%i)),logexpand:false;

    sign: argument cannot be imaginary; found %i
    -- an error. To debug this try: debugmode(true);

    Dieter Kaiser

     
  • Dieter Kaiser

    Dieter Kaiser - 2011-08-03

    The last posting is wrong in this thread.
    Dieter Kaiser

     
  • Dieter Kaiser

    Dieter Kaiser - 2011-08-03
    • status: open --> closed
     
  • Dieter Kaiser

    Dieter Kaiser - 2011-08-03

    Fixed in compar.lisp revision 03.08.2011.
    Closing this bug report as fixed.
    Dieter Kaiser

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks