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