add numerical recipes library
This commit is contained in:
10
lib/nr/k_and_r/recipes/fpoly.c
Normal file
10
lib/nr/k_and_r/recipes/fpoly.c
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
void fpoly(x,p,np)
|
||||
float p[],x;
|
||||
int np;
|
||||
{
|
||||
int j;
|
||||
|
||||
p[1]=1.0;
|
||||
for (j=2;j<=np;j++) p[j]=p[j-1]*x;
|
||||
}
|
||||
Reference in New Issue
Block a user