Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!ucsd!rutgers!bellcore!tness7!tness1!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.lang.fortran Subject: Re: Fortran versus C for numerical analysis Message-ID: <1421@ficc.uu.net> Date: 7 Sep 88 19:40:16 GMT References: <344@quintus.UUCP> <3185@lanl.gov> Organization: SCADA Lines: 6 The compiler is free to perform any optimisation it wants, so long as it doesn't change the result. So (1.0+x)*2.0 can be evaluated as 2+2*x if that's more efficient. Multiplying by 2 is an exact operation in binary floating point. -- Peter da Silva `-_-' Ferranti International Controls Corporation. "Have you hugged U your wolf today?" peter@ficc.uu.net