Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #135633
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Krishna Myneni <krishna.myneni@ccreweb.org> |
| Newsgroups | comp.lang.forth |
| Subject | Re: Range Reduction Using Big Number Arithmetic |
| Date | Wed, 9 Sep 2026 15:06:24 -0500 |
| Organization | A noiseless patient Spider |
| Lines | 46 |
| Message-ID | <117se80$1eerr$1@dont-email.me> (permalink) |
| References | <115pm90$3cl9h$1@dont-email.me> <1168f21$bnk$1@dont-email.me> <116sa3b$2dpj8$4@dont-email.me> <117cuca$4f48$1@dont-email.me> <117rjv3$14ov3$1@dont-email.me> <20260909184929.0000509e@tin.it> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Wed, 09 Sep 2026 20:06:26 +0000 (UTC) |
| Injection-Info | dont-email.me; logging-data="1522555"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ckC0nKJdLNQH84s3XfRPM"; posting-host="f1a440e59fd2ae209967cdd0a62aeaba" |
| User-Agent | Mozilla Thunderbird |
| Cancel-Lock | sha1:1Db5LHElqn5ljk1v/4wA4sXMbas= sha256:zxkWa9JNcVOfTCtvdhtEg5OMXuEke8zam2mrI84Ag+E= sha1:kjm6Smr+W+7gQPcZ0NMZzrjMDCY= sha256:NrzFHFHuCiD1NxU1r7WdIwqztbMtCpNovsZWhf9+ttk= |
| Content-Language | en-US |
| In-Reply-To | <20260909184929.0000509e@tin.it> |
| Xref | csiph.com comp.lang.forth:135633 |
Show key headers only | View raw
On 9/9/26 11:49 AM, peter wrote: > On Wed, 9 Sep 2026 07:37:55 -0500 ... >> I have extracted the necessary files from glibc and modified them to >> make standalone object files for high accuracy sin(x) and cos(x) >> computation with full-range double-precision args and tested them under >> gcc linux x86 and Digital Mars C++ compilers. >> >> kForth-Win32 will soon get an upgrade for its FSIN and FCOS words. > > An alternative is to use the files from the Core-Math project > > https://gitlab.inria.fr/core-math/core-math > > They are claimed to be correctly rounded, my tests also show this. > They are bloated and will compile to a large object file. > I have seen that also glibc has started to use selected files from them. > Below is a link to my modified files. I've included only the bare minimum to make it work under gcc and sc.exe (Digital Mars C/C++). The src/ directory contains the subdirs gcc/ and sc/ as well as the original files from glibc in orig/ . The readme.txt files in gcc/ and sc/ provide build instructions, under those compilers, for a test program called test_sincos . In the base folder, there is a comparison of sin(x) and cos(x) outputs over a range of angles for gcc and sc. The object files are fairly small. Under sc, $ ls -l *.obj ... 2533 Sep 9 08:49 branred.obj ... 3728 Sep 9 08:49 sincostab.obj ... 2315 Sep 9 08:49 s_sin.obj ... 546 Sep 9 08:54 test_sincos.obj The standalone test program is linked with the C libraries, ... 64028 Sep 9 08:54 test_sincos.exe -- KM https://ccreweb.org/software/glibc/sincos/
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-08-15 07:32 -0500
Re: Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-08-15 07:48 -0500
Re: Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-08-20 22:01 -0500
Re: Range Reduction Using Big Number Arithmetic albert@spenarnc.xs4all.nl - 2026-08-22 19:31 +0200
Re: Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-08-31 08:49 -0500
Re: Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-08-28 10:39 -0500
Re: Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-08-28 10:42 -0500
Re: Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-03 18:03 -0500
Re: Range Reduction Using Big Number Arithmetic marcel hendrix <mhx@iae.nl> - 2026-09-04 07:29 +0200
Re: Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-04 07:45 -0500
Re: Range Reduction Using Big Number Arithmetic marcel hendrix <mhx@iae.nl> - 2026-09-04 15:29 +0200
Re: Range Reduction Using Big Number Arithmetic albert@spenarnc.xs4all.nl - 2026-09-05 12:27 +0200
Re: Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-05 08:39 -0500
Re: Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-09 07:37 -0500
Re: Range Reduction Using Big Number Arithmetic peter <peter.noreply@tin.it> - 2026-09-09 18:49 +0200
Re: Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-09 15:06 -0500
Re: Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-10 19:03 -0500
Re: Range Reduction Using Big Number Arithmetic peter <peter.noreply@tin.it> - 2026-09-11 14:56 +0200
Re: Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-11 09:17 -0500
Re: Range Reduction Using Big Number Arithmetic peter <peter.noreply@tin.it> - 2026-09-11 17:04 +0200
Re: Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-11 10:46 -0500
Re: Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-11 13:24 -0500
Re: Range Reduction Using Big Number Arithmetic peter <peter.noreply@tin.it> - 2026-09-11 23:21 +0200
Re: Range Reduction Using Big Number Arithmetic peter <peter.noreply@tin.it> - 2026-09-12 00:42 +0200
Re: Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-11 18:33 -0500
Re: Range Reduction Using Big Number Arithmetic peter <peter.noreply@tin.it> - 2026-09-12 11:04 +0200
Re: Range Reduction Using Big Number Arithmetic Krishna Myneni <krishna.myneni@ccreweb.org> - 2026-09-12 10:33 -0500
csiph-web