Waldek Hebisch <[EMAIL PROTECTED]> writes:

> Martin Rubey wrote:

> > (2) -> log(-2::Complex DFLOAT)
...
> > I wonder where the -0.0 comes from...
> 
> (3) -> parse("log(-2::Complex DFLOAT)")$INFORM
> 
>    (3)  (log (- (:: 2 (Complex DFLOAT))))
>                                                               Type: InputForm
> 
> so, 2 is first converted to complex and then the result is negated.

OK.  So I have to tell SBCL that I do not want -0.0...

(73) -> )lisp (log (- (complex 2.0)))
Value = #C(0.6931471805599453 -3.141592653589793)
(73) -> )lisp (log (complex -2.0))
Value = #C(0.6931471805599453 3.141592653589793)

Martin


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to