From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,baadd4fe2bf1dd84 X-Google-Attributes: gid111c93,public From: Toon Moene Subject: Re: Redhat/Alpha computational performance???? Date: 1998/03/11 Message-ID: <6e6t9b$da3$1@news.utrecht.NL.net>#1/1 X-Deja-AN: 333092049 References: <6d5453$sht@news1.newsguy.com> <6dhvm4$a4u$1@news.utrecht.NL.net> Organization: Moene Computational Physics, Maartensdijk, The Netherlands Newsgroups: comp.os.linux.alpha mbkennel@yahoo.com (Matt Kennel) wrote: > :OTOH, if usage of exp, sin and cos is so heavy in your program, why don't you > :use lookup tables; > Maybe, but we're using double precision complex. OK, that's different stuff - we can get away with single precision reals. > Unfortunately I suspect we need fairly decent accuracy since we're looking > at subtle dynamical effects which accumulate over hundreds of thousands of > iterations (each iteration composed of 2000 integration timesteps). > e.g. if sin^2 + cos^2 isn't quite 1 that means that false energy is being > inserted into or dissipated from the system improperly. I saw a post in comp.arch a couple of weeks ago saying that the Pentium (Pro) intrinsic sin and cos weren't very good at large arguments (i.e. their reduction to the interval [0, 1/4 pi) sucks). This might, however, not be a problem in your case. -- Toon Moene (mailto:toon@moene.indiv.nluug.nl) Saturnushof 14, 3738 XG Maartensdijk, The Netherlands Phone: +31 346 214290; Fax: +31 346 214286 g77 Support: mailto:fortran@gnu.org; NWP: http://www.knmi.nl/hirlam