rskey's Calculator forensics in Fortran
|
03-13-2016, 02:15 PM
Post: #10
|
|||
|
|||
RE: rskey's Calculator forensics in Fortran
(03-08-2016 05:31 PM)Paul Berger (Canada) Wrote: Hi Paul, thanks I have updated the first post with your results. Do you see any difference if you specify double precision constants? The way the code is written it would normally cause standard reals to have to be promoted to REAL*8. For instance 180.0 in double precision in FORTRAN IV thru F90 would probably have to be specified as 180.0D0. I can't remember when KIND came into vogue but I think from F95 something like 180.0_8 would be the way to code it. I have seen accuracy fall off when constants are not declared with the correct precision but your result seems to contradict that. I wonder if there is some default in the compiler you're using that handles that automagically. It ain't OVER 'till it's 2 PICK |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
rskey's Calculator forensics in Fortran - HP67 - 06-30-2014, 12:44 PM
RE: rskey's Calculator forensics in Fortran - Paul Berger (Canada) - 06-30-2014, 02:31 PM
RE: rskey's Calculator forensics in Fortran - HP67 - 06-30-2014, 02:35 PM
RE: rskey's Calculator forensics in Fortran - Martin Paech - 07-01-2014, 07:34 AM
RE: rskey's Calculator forensics in Fortran - HP67 - 07-01-2014, 07:53 AM
RE: rskey's Calculator forensics in Fortran - HP67 - 03-08-2016, 09:09 AM
RE: rskey's Calculator forensics in Fortran - Paul Berger (Canada) - 03-08-2016, 05:31 PM
RE: rskey's Calculator forensics in Fortran - HP67 - 03-13-2016 02:15 PM
RE: rskey's Calculator forensics in Fortran - Paul Berger (Canada) - 03-13-2016, 04:51 PM
RE: rskey's Calculator forensics in Fortran - Dieter - 03-09-2016, 10:08 AM
RE: rskey's Calculator forensics in Fortran - Paul Dale - 03-09-2016, 09:27 PM
RE: rskey's Calculator forensics in Fortran - HP67 - 03-13-2016, 02:24 PM
|
User(s) browsing this thread: 1 Guest(s)