From: Dong-Woon Park <dwpark@ghost1.snu.ac.kr>
Subject: Re: sin() on alpha.
Date: 1998/05/23 [thread overview]
Message-ID: <uf90ntn3ff.fsf@ghost2.snu.ac.kr> (raw)
In-Reply-To: 3565295F.7367C07E@dirac.phys.uwm.edu
[-- Attachment #1: Type: text/plain, Size: 945 bytes --]
Thanks for replies.
Why polynomials are faster ? I don't know at all about the way
co-processor or libm works. Doesn't libm use these schemes? or is
there any chance to lose some accuracy using polynomials instead of
sin() libm provides ?
Bruce Allen <ballen@dirac.phys.uwm.edu> writes:
> > 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
>
--
PGP public key: http://ghost1.snu.ac.kr/~dwpark/dwpark.asc
[-- Attachment #2: Type: application/pgp-signature, Size: 346 bytes --]
next prev parent reply other threads:[~1998-05-23 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
1998-05-22 4:00 ` Greg Lindahl
1998-05-23 4:00 ` Dong-Woon Park [this message]
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