"""
Calculating the nth Hermite Polynomial H(x) using
the recursive definition of Hermite Polynomials. 
"""
def H(n,x):
    H0 = 1 #Initializing H_0
    H1 = 2*x #Initializing H_1
    for k in range(1,n):
        H0,H1 = H1,2*x*H1-2*k*H0 #Recursive call of definition

    return H1 #The nth Hermite Polynomial

4b916ab1f39fa9d83a8f21844c1ae80e20348586
<mask token>

<mask token>


def H(n, x):
    H0 = 1
    H1 = 2 * x
    for k in range(1, n):
        H0, H1 = H1, 2 * x * H1 - 2 * k * H0
    return H1

"""
Calculating the nth Hermite Polynomial H(x) using
the recursive definition of Hermite Polynomials. 
"""
def H(n,x):
    H0 = 1 #Initializing H_0
    H1 = 2*x #Initializing H_1
    for k in range(1,n):
        H0,H1 = H1,2*x*H1-2*k*H0 #Recursive call of definition

    return H1 #The nth Hermite Polynomial
