C special math functions with bsd/mit - like license
are you aware of a trusted (i.e. efficient and accurate) implementation of special math functions (like gamma, beta, error and inverse error functions) for the C language available with a non-gpl license? BSD or MIT licenses are fine.
So something like: http://www.gnu.org/software/gsl/manual/html_node/Special-Functions.html
but with a more permissive license. I am aware boost have something similar but it's a bit overkill to add dependency on boost just for thi开发者_如何学运维s... Moreover C would be preferable in this context...
Thanks!
The answers to the questions below contain links to some excellent libraries, including fdlibm and cephes:
- C library of single-precision transcendental functions
- long double math library implementations?
- Platform independent math library
ATLAS has C bindings. http://math-atlas.sourceforge.net/ ATLAS has a BSD style license. http://math-atlas.sourceforge.net/faq.html#license
C99 stdlib has the functions you mentioned, there's no need to go with an external library: http://en.cppreference.com/w/c/numeric/math
Just look for a cstdlib implementation that suits your licensing needs. glibc is released under LGPL btw (not the same as GPL)!
精彩评论