1.尔秘多项式的实现
#include <stdio.h>
#include <stdlib.h>
int hermite(int n, int x)
{
if(n <= 0)
{
return 1;
}
else if(n == 1)
{
return 2*x;
}
else
{
return 2*x*hermite(n-1, x)-2*(n-1)*hermite(n-2, x);
}
}
int main(char argc , char *argv[])
{
printf("%d\n",hermite(3,2));
system("pause");
}