Files
2025-02-Numerical/lib/nr/cpp/recipes/beta.cpp
2025-09-12 18:55:25 +09:00

9 lines
141 B
C++

#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));
}