add numerical recipes library
This commit is contained in:
8
lib/nr/cpp/recipes/beta.cpp
Normal file
8
lib/nr/cpp/recipes/beta.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <cmath>
|
||||
#include "nr.h"
|
||||
using namespace std;
|
||||
|
||||
DP NR::beta(const DP z, const DP w)
|
||||
{
|
||||
return exp(gammln(z)+gammln(w)-gammln(z+w));
|
||||
}
|
||||
Reference in New Issue
Block a user