From: Bruce Allen <ballen@dirac.phys.uwm.edu>
Subject: Re: sin() on alpha.
Date: 1998/05/22 [thread overview]
Message-ID: <3565295F.7367C07E@dirac.phys.uwm.edu> (raw)
In-Reply-To: ufwwbehp5r.fsf@ghost2.snu.ac.kr
> With a good co-processor of alpha, how much does it take to calcuate
> sin() in comparison with simple + or * operations ? Should I suppress
> the use of sin() to reduce computation as much as possible ? Should I
> use Taylor expanded polynomials ?
NO! Use min/max (Chebyshev) polynomials to evaulate sin(x). See Numerical
Recipes in C, section 5.8 or to save time use Abramowitz and Stegun
4.3.96-103 for all standard trig functions. If you don't need to do range
reduction of x to [0,pi/2] this will be significantly faster than most
libraries.
Bruce Allen
next prev parent reply other threads:[~1998-05-22 4:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-22 4:00 sin() on alpha Dong-Woon Park
1998-05-22 4:00 ` Bruce Allen [this message]
1998-05-22 4:00 ` Greg Lindahl
1998-05-23 4:00 ` Dong-Woon Park
1998-05-23 4:00 ` Bruce Allen
1998-05-24 4:00 ` Joachim Wesner
1998-05-24 4:00 ` Joachim Wesner
1998-05-23 4:00 ` Christopher Browne
1998-05-23 4:00 ` Michal Jaegermann
1998-05-23 4:00 ` Linus Torvalds
1998-05-23 4:00 ` Greg Lindahl
1998-05-24 4:00 ` sin() on alpha / Cray libm Joachim Wesner
1998-05-23 4:00 ` sin() on alpha Andi Kleen
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox