Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#156 log(-1.0b0) unnormalized

closed
nobody
None
5
2002-10-18
2002-10-15
Stavros Macrakis
No

In Maxima 5.5, gcl 3-2.6:

log(-1.0) includes an unnormalized 0.0b0, so you get the
warning:

Warning - an incorrect form for 0.0B0 has been
generated.

Here is the fix to logbigfloat:

Before:

(COND ((NUMBERP (CAR A))
(SETQ A (LIST (FPROUND (CAR A))
(PLUS -2 *M (CADR A))))

After:

(COND ((NUMBERP (CAR A))
(SETQ A
(if (=0 (car a))
'(0 0)
(LIST (FPROUND (CAR A))
(PLUS -2 *M (CADR A)))))

Discussion

  • Raymond Toy
    Raymond Toy
    2002-10-15

    Logged In: YES
    user_id=28849

    Presumably "=0" is really "= 0" (with a space). If so,
    fixed as suggested.

     
  • Raymond Toy
    Raymond Toy
    2002-10-18

    • status: open --> closed