public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/19443] New: log10 statement does not work properly in gfortran
@ 2005-01-14 12:57 mgilbert at airborne dot nrl dot navy dot mil
  2005-01-14 13:05 ` [Bug fortran/19443] " pinskia at gcc dot gnu dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: mgilbert at airborne dot nrl dot navy dot mil @ 2005-01-14 12:57 UTC (permalink / raw)
  To: gcc-bugs

The log10 operator in gfortran (cygwin build 20041213) does not work properly if
the statement is operated on a variable, but it works fine when operating on a
constant.  The plain log statement works fine regardless.  If the following
program is executed, one can observer that log for the two methods generates the
same value, but log10 using the different methods produces different results. 
The 10*log10(tst) appears to generate -Infinity, where it should generate -50.

program test
  implicit none
  real :: tst
  
  tst=1e-5
  write(*,*) 10*log(1e-5), 10*log(tst)
  write(*,*) 10*log10(1e-5), 10*log10(tst)
end program test

-- 
           Summary: log10 statement does not work properly in gfortran
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mgilbert at airborne dot nrl dot navy dot mil
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-03-13 17:28 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-14 12:57 [Bug fortran/19443] New: log10 statement does not work properly in gfortran mgilbert at airborne dot nrl dot navy dot mil
2005-01-14 13:05 ` [Bug fortran/19443] " pinskia at gcc dot gnu dot org
2005-01-14 13:20 ` mgilbert at airborne dot nrl dot navy dot mil
2005-01-14 13:25 ` pinskia at gcc dot gnu dot org
2005-01-14 13:35 ` mgilbert at airborne dot nrl dot navy dot mil
2005-01-14 13:38 ` pinskia at gcc dot gnu dot org
2005-01-14 13:42 ` mgilbert at airborne dot nrl dot navy dot mil
2005-01-14 13:51 ` pinskia at gcc dot gnu dot org
2005-01-14 16:51 ` mgilbert at airborne dot nrl dot navy dot mil
2005-01-17 22:59 ` tobi at gcc dot gnu dot org
2005-01-17 23:01 ` tobi at gcc dot gnu dot org
2005-01-25  9:45 ` paulthomas2 at wanadoo dot fr
2005-01-31  4:38 ` sgk at troutmask dot apl dot washington dot edu
2005-02-07 22:52 ` tobi at gcc dot gnu dot org
2005-02-07 23:09 ` tobi at gcc dot gnu dot org
2005-03-04 18:01 ` mgilbert at airborne dot nrl dot navy dot mil
2005-03-13 17:28 ` tobi at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).