Hi,
For porting a program from GCC I needed erf() and erfc(). OW's math lib
doesn't include those. If I read right, these are required by C99. I found
a usable implementation on
http://www.velocityreviews.com/forums/t317358-erf-function-in-c.html ,
second posting (2004-02-14) , which lists source from Sun with a permissive
license.
For my ported program this seems to work, it behaves the same as when
compiled with GCC (for Windows). However, I know no tests to verify the
results of these functions.
Should I add the functions from the Sun source to the math lib? The
functions in the source from sun are erf(), erfc(), my source has also
rint() and round(), don't know where they came from. Is the license
acceptable to OW (that module would have a different license than the
rest).
Normally, we want to have those tested too, but I don't know how.
Thoughts please?
Mat Nieuwenhoven
PS prototypes:
double erf(double x);
double erfc(double x);
double rint(double x);
int round(double number);