This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
A few comments about the test case:
(1) is not 1.0/-0.0 illegal? If yes, it does not seem to be caught by gfortran; (2) in the first release of the test a = exp(2000.0)/exp(1000.0) should give a NaN and not +Infinity as in the following test:
real a, b b=huge(a) a=exp(b) b=exp(b/2.0) print *, a, b, a/b, b/a end
you can also consider the case a = exp(1000.0)/exp(2000.0).
This is interesting, I tried several combinations just to explore what the results would be and +Infinity is what mpfr gives in that case (2). As far as (1), same thing, it is what mpfr gives. We will have to explore this a bit.
Dominique
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |