From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Padiyath Sreekumaran Newsgroups: gmane.os.tru64.managers Subject: Fortran Compiler bug? Date: Fri, 15 Oct 2004 10:41:15 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: sea.gmane.org 1097829796 13356 80.91.229.6 (15 Oct 2004 08:43:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2004 08:43:16 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Oct 15 10:43:02 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1CINfx-0001l6-00 for ; Fri, 15 Oct 2004 10:43:01 +0200 Original-Received: (qmail 31237 invoked by uid 5); 15 Oct 2004 08:41:59 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 31158 invoked by uid 49501); 15 Oct 2004 08:41:58 -0000 Original-Received: from Kumar.Padiyath@psi.ch by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.4.119):SA:0(-4.9/5.0):. Processed in 2.667111 secs); 15 Oct 2004 08:41:58 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 15 Oct 2004 08:41:55 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I5M00H63ATUVQ@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 15 Oct 2004 04:41:54 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute1.cind.ornl.gov by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0I5M00602ASXKI@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 15 Oct 2004 04:41:24 -0400 (EDT) Original-Received: from psi11.psi.ch (psi11.psi.ch [129.129.190.111]) by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) with SMTP id <0I5M004F8ASVCY@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 15 Oct 2004 04:41:21 -0400 (EDT) Original-Received: from 129.129.190.114 by psi11.psi.ch (InterScan E-Mail VirusWall NT) ; Fri, 15 Oct 2004 10:41:18 +0200 Original-Received: by psi14.psi.ch with Internet Mail Service (5.5.2657.72) id ; Fri, 15 Oct 2004 10:41:17 +0200 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Internet Mail Service (5.5.2657.72) X-Envelope-From: X-ORNL-Envelope-To: tru64-unix-managers@sws1.ctd.ornl.gov rfc822;tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:7667 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7667 Hello, One of the user has found out the following difference in results between HP Fortran compiler on tru64 and Lahey Fortran running on PC. Has any one noticed this problem? The OS is Tru64 V5.1A and Fortran Compiler version Compaq Fortran V5.5-1877 Compaq Fortran Compiler V5.5-1877-48BBF Program Listing: ================ d = 0.1 x = 10. do i = 1,10 x = x*d y = exp(-x) z = 1. - exp(-x) write(*,*)x,y,z enddo stop end The program compiled with f90 -o prog prog.f The output from both compiler: (Lahey compiler are what you get with a HP32S II, hand held calculator!) x exp(-x) 1 - exp(-x) 1 - exp(-x) Lahey FORTRAN --------------------------------------------------------- 1 0.3678795 0.6321205 0.63212 0.1 0.9048374 9.5162570E-2 0.951626 E-1 0.01 0.9900498 9.9501610E-3 0.995017E-2 1.0x10-3 0.9990005 9.9951029 E-4 0.999500 E-3 1.0x10-4 0.9999000 1.0001659 E-4 0.999950 E-4 1.0x10-5 0.9999900 1.0013580E-5 0.999995E-5 1.0x10-6 0.9999990 1.0132790E-6 0.100000 E-5 1.0x10-7 0.9999999 1.1920929E-7 0.100000 E-6 1.0x10-8 1.0000000 0.0000000 0.100000 E-7 1.0x10-9 1.0000000 0.0000000 0.100000 E-8 with best regards, Kumar