add numerical recipes library
This commit is contained in:
6
lib/nr/cpp/recipes/erff.cpp
Normal file
6
lib/nr/cpp/recipes/erff.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include "nr.h"
|
||||
|
||||
DP NR::erff(const DP x)
|
||||
{
|
||||
return x < 0.0 ? -gammp(0.5,x*x) : gammp(0.5,x*x);
|
||||
}
|
||||
Reference in New Issue
Block a user