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

PR pls.153 at protonmail.com
Tue Mar 21 18:20:14 UTC 2023


> With 21.2.1 I get:
> 
> > > (log #c(0 1) #c(0 -1))
> 
> 
> Debugger received error of type: DIVISION-BY-ZERO
> #<a DIVISION-BY-ZERO 0x7f8925037640>

I also noticed that setting:

(si::trap-fpe t nil)

changes the result to:

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

#C(#<single-float quiet NaN> #<single-float quiet NaN>)


Paul




More information about the ecl-devel mailing list