Message-ID: <36503E66.BE49C47B@cyberoptics.com> From: Eric Rudd Organization: CyberOptics X-Mailer: Mozilla 4.05 [en] (Win95; U) MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: high precision nonlinear math functions ? References: <4 DOT 1 DOT 19981116091759 DOT 00abe6f0 AT hal DOT nt DOT tuwien DOT ac DOT at> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 32 Date: Mon, 16 Nov 1998 09:01:59 -0600 NNTP-Posting-Host: 206.144.150.73 X-Trace: news2.randori.com 911228469 206.144.150.73 (Mon, 16 Nov 1998 07:01:09 PDT) NNTP-Posting-Date: Mon, 16 Nov 1998 07:01:09 PDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Anton Helm wrote: > After receiving several messages about my "stupid coding" > (yes someone actually used this wording...) I don't know what it is about E-mail that provokes people to intemperance... > I testify here and now that I did _NOT_ implement the examples given > directly. The code is heavily rearranged to take care of numerical > effects. I just didn't want to confuse people here on the list who don't > know such techniques. > Numeric precision still _IS_ a problem as I use these algorithms > on several unix hosts (where there are such functions in long double) > with much better results. If you are using good computational forms, and thus getting results accurate to 16 decimal places, I am a little curious as to why that is inadequate. If you *aren't* getting results to 16 places, then I am still suspicious of the computational forms. > Someone actually removed them from current library ??? > Why ? Maybe because in ANSI they are definded as double precision > functions, but couldn't it be possible to supply them whith different > names, e.g. ld_sin() and wrap them with a #ifndef ANSI in math.h ? For what it's worth, the latest draft of the emerging C9x standard specifies float, double, and long double versions of all the math functions. -Eric Rudd rudd AT cyberoptics DOT com