This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/52439] New: Calculation of natural log


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52439

             Bug #: 52439
           Summary: Calculation of natural log
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dtovson@hotmail.com


Created attachment 26788
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26788
simple fortran calculation of the natural logs mentioned in the description.
Among other files in the zip file, I included a batch file, executable and
output files.

using gfortran (4.7.0):
calculation of DLOG(0.01)  = -4.60517020833983359295871196081862
calculation of DLOG(100.0) =  4.60517018598809180218722758581862

Numbers should match except for the sign, the value for DLOG(0.01) also appears
outside a tolerance I expect to find.

using another a calculation routine with another compiler
calculation of DLOG(0.01)  = -4.605170185988091368035982909369
calculation of DLOG(100.0) =  4.605170185988091368035982909369


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]