#Pybt1633. Hermite多项式
Hermite多项式
Hermite多项式
题目描述
用递归的方法求Hermite多项式的值
$h_n(x) =\begin{cases}1, & \text{n=0} \\2x, & \text{n=1} \\2xh_{n-1}(x)-2(n-1)h_{n-2}(x) & \text {n>1}\end{cases}$
输入格式
给定的n和正整数x。
输出格式
多项式的值。
数据范围
(原站未提供,导入后需人工补齐)
样例
1 2
4.00
用递归的方法求Hermite多项式的值
$h_n(x) =\begin{cases}1, & \text{n=0} \\2x, & \text{n=1} \\2xh_{n-1}(x)-2(n-1)h_{n-2}(x) & \text {n>1}\end{cases}$
给定的n和正整数x。
多项式的值。
(原站未提供,导入后需人工补齐)
1 2
4.00