def hermite_iterative(x: float, n: int) -> float:
    """Hermite polynomial computations using the three term recurrence
    relation.
    
    Arguments:
        x -- Value to evaluate the polynomial
        n -- Degree of the Hermite polynomial
    
    Returns:
        result -- Value of the Hermite polynomial, already evaluated.
    """
    first_value = 1.0
    second_value = x

    if n == 0:
        return first_value
    elif n == 1:
        return second_value
    else:
        result = 0.0

        for i in range(1, n):
            result = x * second_value - i * first_value
            first_value = second_value
            second_value = result

        return result