Mail Archives: djgpp/1998/11/16/13:52:42
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
- Raw text -