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 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