From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,f8f184f3bc3517df X-Google-Attributes: gidfc89c,public X-Google-Thread: f678f,f8f184f3bc3517df X-Google-Attributes: gidf678f,public X-Google-Thread: 1094ba,f8f184f3bc3517df X-Google-Attributes: gid1094ba,public From: Arnaud Desitter Subject: Re: a**2 or a*a Date: 1998/01/14 Message-ID: <34BCD934.41C6@bristol.ac.uk>#1/1 X-Deja-AN: 315877977 Content-Transfer-Encoding: 7bit Sender: usenet@fsa.bris.ac.uk (Usenet) X-Nntp-Posting-Host: gmb.ggy.bris.ac.uk References: <34BCC4A4.F27A00D1@cranfield.ac.uk> To: Yon Han CHONG Content-Type: text/plain; charset=us-ascii Organization: Department of Geography, University of Bristol, UK Mime-Version: 1.0 Newsgroups: comp.lang.fortran,comp.unix.osf.misc,comp.unix.programmer Yon Han CHONG wrote: > > Is there speed difference between a**2 and a*a. > No. A good compiler (and the digital's one is good in this respect) will use the best algorithm for a**b, i.e. a multiplication if b=2. Cheers, Arnaud -- _______________________________________________________________________ Arnaud Desitter Department of Geography, University of Bristol University Road, Bristol, BS8 1SS, United Kingdom Internet: Arnaud.Desitter@Bristol.ac.uk Fax: +44 (0)117 928 7878 _______________________________________________________________________