add numerical recipes library
This commit is contained in:
7
lib/nr/ansi/recipes/erff.c
Normal file
7
lib/nr/ansi/recipes/erff.c
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
float erff(float x)
|
||||
{
|
||||
float gammp(float a, float x);
|
||||
|
||||
return x < 0.0 ? -gammp(0.5,x*x) : gammp(0.5,x*x);
|
||||
}
|
||||
Reference in New Issue
Block a user