7 lines
97 B
C++
7 lines
97 B
C++
#include "nr.h"
|
|
|
|
DP NR::erff(const DP x)
|
|
{
|
|
return x < 0.0 ? -gammp(0.5,x*x) : gammp(0.5,x*x);
|
|
}
|