add numerical recipes library
This commit is contained in:
18
lib/nr/ansi/examples/xscrsho.c
Normal file
18
lib/nr/ansi/examples/xscrsho.c
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
/* Driver for routine scrsho */
|
||||
|
||||
#include <stdio.h>
|
||||
#define NRANSI
|
||||
#include "nr.h"
|
||||
|
||||
static float fx(float x)
|
||||
{
|
||||
return bessj0(x);
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
scrsho(fx);
|
||||
return 0;
|
||||
}
|
||||
#undef NRANSI
|
||||
Reference in New Issue
Block a user