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