167. Hermite多项式 简单
时间限制: 1.0s · 内存限制: 64MB · 通过: 0/0
用递归的方法求Hermite多项式的值 $$h_n(x)= \begin{cases} \begin{array}{11} 1 & n=0 \\2x & n=1\\2xh_{n-1}(x)-2(n-1)h_{n-2}(x) & n>1 \end{array} \end{cases}$$ 对给定的$x$和正整数$n$,求多项式的值。
提交代码
C++
请先登录
登录后即可提交代码