<span style="font-size:24px;"><strong>#include <stdio.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()
{
int ret= hermite(1,2);
printf("%d\n",ret);
return 0;
}</strong></span>
使用递归实现厄密多项式
最新推荐文章于 2021-05-25 02:54:10 发布