From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,2cb1c7dcdf4349e1 X-Google-Attributes: gid111c93,public From: Dong-Woon Park Subject: Re: sin() on alpha. Date: 1998/05/23 Message-ID: #1/1 X-Deja-AN: 355732033 Content-Transfer-Encoding: 7bit References: <3565295F.7367C07E@dirac.phys.uwm.edu> X-Emacs: Emacs 20.2, MULE 3.0 (MOMIJINOGA) Mime-Version: 1.0 (generated by SEMI 1.2.4 - "Arimagawa") Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="pgp-sign-Multipart_Sat_May_23_11:09:39_1998-1"; micalg=pgp-md5 Organization: Seoul Nat'l Univ. Newsgroups: comp.os.linux.alpha --pgp-sign-Multipart_Sat_May_23_11:09:39_1998-1 Content-Type: text/plain; charset=US-ASCII 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 --pgp-sign-Multipart_Sat_May_23_11:09:39_1998-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP MESSAGE----- Version: 2.6.3ia Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface iQCVAwUBNWYv46O2OkUvpF8BAQGPJgP/SBL9Qy3y5E8vcaq8acmGcbzXow2vn8JC bjM24qbrBpgNYxBVixaHkR78MOLOe7r5s0G+O6gxgcSX2Vnin/KTdoQseVe+zJkB NGbW3T6o41mytdbZcH+0P1h3WACZzFsX81zEsDgAO4q9oqOyEeoiv3EQCjIKgHla 3vPiQM5cbyE= =vaR3 -----END PGP MESSAGE----- --pgp-sign-Multipart_Sat_May_23_11:09:39_1998-1--