add numerical recipes library
This commit is contained in:
10
lib/nr/k_and_r/recipes/beta.c
Normal file
10
lib/nr/k_and_r/recipes/beta.c
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
#include <math.h>
|
||||
|
||||
float beta(z,w)
|
||||
float w,z;
|
||||
{
|
||||
float gammln();
|
||||
|
||||
return exp(gammln(z)+gammln(w)-gammln(z+w));
|
||||
}
|
||||
Reference in New Issue
Block a user