gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] hppa floating point error


From: Camm Maguire
Subject: [Gcl-devel] hppa floating point error
Date: Mon, 24 Mar 2014 16:22:32 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Greetings!  I believe exp(-4.3682654441477153e+19) should return 0.0.

=============================================================================
Breakpoint 1, number_exp (x=0xee2e90) at num_sfun.c:58
58              switch (type_of(x)) {
(gdb) n
69                      return(make_longfloat(exp(lf(x))));
(gdb) s
__GI___exp (x=-4.3682654441477153e+19) at ../sysdeps/ieee754/dbl-64/w_exp.c:26
26      ../sysdeps/ieee754/dbl-64/w_exp.c: No such file or directory.
(gdb) fin
Run till exit from #0  __GI___exp (x=-4.3682654441477153e+19)
    at ../sysdeps/ieee754/dbl-64/w_exp.c:26
0x001b3d7c in number_exp (x=0xee2e90) at num_sfun.c:69
69                      return(make_longfloat(exp(lf(x))));
Value returned is $9 = 1e-300
=============================================================================

Take care,
-- 
Camm Maguire                                        address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah



reply via email to

[Prev in Thread] Current Thread [Next in Thread]