def vertex(a, x, h, k):
    """
    definition: func(a, x, h, k) {...}
    objective : returns the 'y' of the vertex formula
                y = a (x-h)^2 + k
    """
    result = a * ((x - h) * (x - h)) + k
    return result
