Deutsch English Français Italiano |
<utf4s1$1jei0$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Steven G. Kargl" <sgk@REMOVEtroutmask.apl.washington.edu> Newsgroups: comp.lang.c,comp.arch Subject: Re: Radians Or Degrees? Date: Wed, 20 Mar 2024 17:02:57 -0000 (UTC) Organization: A noiseless patient Spider Lines: 32 Message-ID: <utf4s1$1jei0$1@dont-email.me> References: <ur5trn$3d64t$1@dont-email.me> <ur5v05$3ccut$1@dont-email.me> <20240222015920.00000260@yahoo.com> <ur69j9$3ftgj$3@dont-email.me> <ur86eg$1aip$1@dont-email.me> <ur88e4$1rr1$5@dont-email.me> <ur8a2p$2446$1@dont-email.me> <ur8ctk$2vbd$2@dont-email.me> <20240222233838.0000572f@yahoo.com> <3b2e86cdb0ee8785b4405ab10871c5ca@www.novabbs.org> <ur8nud$4n1r$1@dont-email.me> <936a852388e7e4414cb7e529da7095ea@www.novabbs.org> <ur9qtp$fnm9$1@dont-email.me> <20240314112655.000011f8@yahoo.com> <jwv1q87l5ou.fsf-monnier+comp.arch@gnu.org> <9a5b9a6a445bd41ff75a93b589982970@www.novabbs.org> <jwv8r2djafq.fsf-monnier+comp.arch@gnu.org> <20240320182147.000067e1@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 20 Mar 2024 17:02:57 -0000 (UTC) Injection-Info: dont-email.me; posting-host="e049053cb2d7a4db1601c778c974b911"; logging-data="1686080"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ShAigAsfGwcAPpHm/Iw+a" User-Agent: Pan/0.145 (Duplicitous mercenary valetism; d7e168a git.gnome.org/pan2) Cancel-Lock: sha1:dDa/DBWL0PVyOH+gMsuGqXy2bk4= Bytes: 2908 On Wed, 20 Mar 2024 18:21:47 +0200, Michael S wrote: > On Wed, 20 Mar 2024 09:54:36 -0400 > Stefan Monnier <monnier@iro.umontreal.ca> wrote: > >> >>>> There are groups who have shown that exactly rounded >> >>>> trancendental functions are in fact achievable with maybe 3X >> >>>> reduced performance. >> >> That much? I had the impression it was significantly cheaper. >> > The J. M. Muller book indicates about 2× to 2.5× >> >> The [Rlibm](https://people.cs.rutgers.edu/~sn349/rlibm/) project >> claims to get much better performance (basically, in the same >> ballpark as not-correctly-rounded implementations). >> > > I had only read the 1st page. > It sounds like they are not particularly interested in IEEE binary64 > which appears to be the major point of interest of math libs of > conventional languages. > I skimmed their logf(x) implementation. Their technique will fall a part for binary64 (and other higher precisions). With logf(x), they combine an argument step with table look-up and a 5th-order polynomial approximation. The polynomial is computed in double precision, and provides the correct rounding. For binary64, the polynomial would require many more terms and double-double or binary128 evaluation. -- steve