#include<bits/stdc++.h>
using namespace std;
double h(int n,double x)
{
if(n==0)
return 1;
else if(n==1)
return 2*x;
else if(n>1)
{return (2*x*h(n-1,x)-2*(n-1)*h(n-2,x));
}
}
int main()
{
double a,b;
cin>>a>>b;
printf("%.2f",h(a,b));
return 0;
}
求Hermite多项式的值
于 2018-01-28 15:30:22 首次发布