Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcdc!hpislx!hplvli!boyne From: boyne@hplvli.HP.COM (Art Boyne) Newsgroups: comp.lang.c Subject: Re: Fortran computes cosine 300 times faster than C (on Sun3) Message-ID: <340010@hplvli.HP.COM> Date: 9 Mar 89 15:35:11 GMT References: <765@uceng.UC.EDU> Organization: Loveland Inst. Div Lines: 10 chris@mimsy.UUCP (Chris Torek) writes: >the Fortran compiler can be certain that COS(2.5) does nothing but >compute cosines, and can change the code to > > TMP = 4.0 * COS(2.5) ^^^^^^^^^^^^^^ make that COS(2.5)**4 >10 CONTINUE Art Boyne, boyne@hplvla.hp.com