Commit aee20de2 authored by Paolo Bosetti's avatar Paolo Bosetti

Code formatting; Added credits for erf/erfc implementation

parent 2948a96c
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
#define atanh(x) (log(1+x) - log(1-x))/2.0 #define atanh(x) (log(1+x) - log(1-x))/2.0
#define cbrt(x) pow(x,1.0/3.0) #define cbrt(x) pow(x,1.0/3.0)
/*
** Implementations of error functions
** credits to http://www.digitalmars.com/archives/cplusplus/3634.html
*/
#define REL_ERROR 1E-12 #define REL_ERROR 1E-12
/* Implementation of Error function */ /* Implementation of Error function */
double double
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment