From: Barry Caplin <caplin@nag.com>
Subject: gcc 2.7.2.2
Date: Tue, 6 May 97 15:41 CDT [thread overview]
Message-ID: <m0wOr3e-0000uBC@nag.com> (raw)
Hi,
Is there a gcc 2.7.2.2 for alpha linux? I'm having the following problem:
#include <stdio.h>
#include <math.h>
int main(argc,argv)
int argc; char *argv[];
{
double ti;
double sti;
ti = 2.22507385850720138e-308;
sti = sqrt(ti);
printf("tiny = %e\n", ti);
printf("sqrt(tiny) = %e\n", sti);
ti = 2.22507385850720138e-308 * 2.0;
sti = sqrt(ti);
printf("tiny*2.0 = %e\n", ti);
printf("sqrt(^) = %e\n", sti);
}
yields:
tiny = 2.225074e-308
sqrt(tiny) = -3.408875e-154
tiny*2.0 = 4.450148e-308
sqrt(^) = 2.109537e-154
I was having other floating point problems with small numbers that
going from 2.7.2 -> 2.7.2.1 took care of. The only 2.7.2.2 rpm's I could
find were for i386.
Thanks for any pointers.
Barry
Barry Caplin email: bc@nag.com
Numerical Algorithms Group
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-05-06 20:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-06 20:41 Barry Caplin [this message]
1997-05-07 14:11 ` gcc 2.7.2.2 Richard Henderson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox