math module bug

Bjorn Gustavsson bjorn@REDACTED
Fri May 13 10:08:53 CEST 2005


Yes, providing our own implementation is indeed the cleanest thing to do.
We might do that.

But one question first. What are the functions used for?
I have alwayws wondered why they were included in Erlang. (Joe?)

/Bjorn

"Vlad Dumitrescu XX \(LN/EAB\)" <vlad.xx.dumitrescu@REDACTED> writes:

> Hi,
> 
> From: Richard A. O'Keefe
> >Why not provide default implementations of the missing functions?
> >Link them after libm, and you get the libm versions if they exist
> >or the default ones if they don't.
> 
> I didn't need a very exact implementation, nor a fast one, so I ended implementing them in Erlang, using linear interpolation.
> 
> A C implementation can be found at http://www.ks.uiuc.edu/Research/namd/doxygen/erf_8C-source.html, if the Sun copyright notice is kept.
> 
> regards,
> Vlad
> 

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list