(log #c(0 1) #c(0 -1)) errors

Marius Gerbershagen marius.gerbershagen at gmail.com
Sat Mar 25 12:48:12 UTC 2023


Dear James,

This has been fixed now in the develop branch of the git repository. 
Thanks for the report!

Best regards,

Marius Gerbershagen

Am 22.03.23 um 16:54 schrieb James Cloos:
> making either of the coponents of the first #c() float avoids that bug
> but gets a different one:
> 
> ===
>> (log #c(0e0 1) #c(0 -1))
> 
> #C(-0.0 -0.0)
> 
>> (log #c(0 1e0) #c(0 -1))
> 
> #C(-0.0 -0.0)
> ===
> 
> but leaving the first #c() rational and making the second float does not
> avoid it.
> 
> otoh, all float gets the correct results:
> 
> ===
>> (log #c(0.0 1.0) #c(0.0 -1.0))
> 
> #C(-1.0 0.0)
> 
>> (log #c(0l0 1l0) #c(0l0 -1l0))
> 
> #C(-1.0l0 0.0l0)
> ===
> 
> -JimC




More information about the ecl-devel mailing list