Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* gcc 2.7.2.2
@ 1997-05-06 20:41 Barry Caplin
  1997-05-07 14:11 ` Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: Barry Caplin @ 1997-05-06 20:41 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-05-07 14:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-05-06 20:41 gcc 2.7.2.2 Barry Caplin
1997-05-07 14:11 ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox