Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* another f77 math lib bug ?
@ 1995-08-30  4:00 HOFMAN, GERTJAN
  1995-08-31  4:00 ` Steve Lionel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: HOFMAN, GERTJAN @ 1995-08-30  4:00 UTC (permalink / raw)


Hi all,

We are using OSF3.0, DFAO X3.4.1. Just noticed that

   x=90.1
   write (6,*) atand(x)


   gives  >2000 but it should be around ~89.

The errors occur for   +-{90...91} but dissapears when
switching off all optimization.
I am aware there was a ACOSD bug in AOSF v2.0 libm  but
never heard of this one. Is there a patch ??

Gertjan
CHAOS group
TRIUMF
CANADA





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

* Re: another f77 math lib bug ?
  1995-08-30  4:00 another f77 math lib bug ? HOFMAN, GERTJAN
  1995-08-31  4:00 ` Steve Lionel
@ 1995-08-31  4:00 ` Steve Lionel
  1995-08-31  4:00 ` Peter R David
  2 siblings, 0 replies; 4+ messages in thread
From: Steve Lionel @ 1995-08-31  4:00 UTC (permalink / raw)



In article <422orl$lnb@nntp.ucs.ubc.ca>, GERTJAN@TRIUMF.CA (HOFMAN, GERTJAN) 
writes:
|>We are using OSF3.0, DFAO X3.4.1. Just noticed that
|>
|>   x=90.1
|>   write (6,*) atand(x)
|>
|>
|>   gives  >2000 but it should be around ~89.

This works correctly with DEC Fortran V3.8 and DEC OSF/1 V3.2, the current
versions.  I will find out if there is an OSF/1 V3.0 patch which addresses
this.
-- 

Steve Lionel                      Mail: lionel@quark.enet.dec.com
DEC Fortran Development           WWW:  http://www.digital.com/info/slionel.html
Digital Equipment Corporation     CompuServe: 75263,3001
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698             "Free advice is worth every cent"

For information on DEC Fortran 90, see http://www.digital.com/info/hpc/f90/



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

* Re: another f77 math lib bug ?
  1995-08-30  4:00 another f77 math lib bug ? HOFMAN, GERTJAN
@ 1995-08-31  4:00 ` Steve Lionel
  1995-08-31  4:00 ` Steve Lionel
  1995-08-31  4:00 ` Peter R David
  2 siblings, 0 replies; 4+ messages in thread
From: Steve Lionel @ 1995-08-31  4:00 UTC (permalink / raw)



In article <422orl$lnb@nntp.ucs.ubc.ca>, GERTJAN@TRIUMF.CA (HOFMAN, GERTJAN) 
writes:
|>We are using OSF3.0, DFAO X3.4.1. Just noticed that
|>
|>   x=90.1
|>   write (6,*) atand(x)
|>
|>
|>   gives  >2000 but it should be around ~89.

I'm unable to find any reference to a correction for this specific problem.
I do note though that since the error goes away with -O0 that this suggests
the compiler is doing constant folding and hence the error, if any (I don't
have this old combination handy to check) might be in the compiler.

I would recommend upgrading to a more current version of the compiler, at
least.  V3.8 is current.
-- 

Steve Lionel                      Mail: lionel@quark.enet.dec.com
DEC Fortran Development           WWW:  http://www.digital.com/info/slionel.html
Digital Equipment Corporation     CompuServe: 75263,3001
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698             "Free advice is worth every cent"

For information on DEC Fortran 90, see http://www.digital.com/info/hpc/f90/



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

* Re: another f77 math lib bug ?
  1995-08-30  4:00 another f77 math lib bug ? HOFMAN, GERTJAN
  1995-08-31  4:00 ` Steve Lionel
  1995-08-31  4:00 ` Steve Lionel
@ 1995-08-31  4:00 ` Peter R David
  2 siblings, 0 replies; 4+ messages in thread
From: Peter R David @ 1995-08-31  4:00 UTC (permalink / raw)


GERTJAN@TRIUMF.CA wrote;
>  another f77 math lib bug ?

This is not a problem under the most recent version of FORTRAN;

 f77 -O4 atan_test.f
 a.out
   89.36411
 f77 -O3 atan_test.f
 a.out
   89.36411
 f77 -O2 atan_test.f
 a.out
   89.36411
 f77 -O1 atan_test.f
 a.out
   89.36411
 f77 -O0 atan_test.f
 a.out
   89.36411

	We are running FORTRAN version 3.5.

	Good luck,

	Peter David



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

end of thread, other threads:[~1995-08-31  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-08-30  4:00 another f77 math lib bug ? HOFMAN, GERTJAN
1995-08-31  4:00 ` Steve Lionel
1995-08-31  4:00 ` Steve Lionel
1995-08-31  4:00 ` Peter R David

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