Closed jpellegrini closed 1 year ago
Hm, Gauche seems the only one that behaves that way:
The SRFI tests seem to have been written using Gauche as a working implementation, so it would be better to contact the SRFI authors. I'll do that later.
But still, I'd like to know why Gauche gets closer to Maxima than other implementations...
A bit more information:
In Fricas,
(2) -> exp(-280.0) :: Fraction(Integer)
(2)
1
/
40036392008717845384023194539837641702592926796795578830468085063699784991_
158734743483937142825539955730779771077406274555
Which is different from Maxima:
(%07) ratsimp( exp(-280.0));
(%o8) 1/4003639200871784237108441773933670223268126617736359191639377307649967\
3088732009021285915289711101142511335022542771453952
Still investigating
:thinking:
All Schemes out there seem to agree with STkos, except Gauche (I just verified). So I suppose we don't have to keep this open.
Hi @egallesio ! While working on SRFI-194, I noticed that the tests signal errors in STklos but not in Gauche. I think it may have to do with the precision of
exp
:Since STklos seems to not converge as well as Gauche in the tests, probably Gauche has a more precise implementation of
exp
.Using Maxima, I found this:
Distance of Gauche to Maxima:
Distance of STklos to Maxima:
So,
1.866252813877909e+61
6.797671171603074e+91
This is probably a very simple thing to change; I'm including it here as an issue just so the information doesn't get lost.