Lesson 9/38_minimizer.py
def f(X):
    """Given a scalar X, return some value (a real number)."""
    Y = (X - 1.5)**2 + 0.5
    print("X = {}, Y = {}".format(X, Y))  # for tracing
    return Y
Given a scalar X, return some value (a real number).
Given a scalar X, return some value (a real number).
Given a scalar X return some value ( a real number ) .
def f(X):
    Y = (X - 1.5)**2 + 0.5
    print("X = {}, Y = {}".format(X, Y))  
    return Y
def f ( X ) : Y = ( X - 1.5 ) ** 2 + 0.5 print ( "X = {}, Y = {}" . format ( X , Y ) ) return Y
Given a scalar X, return some value (a real number).
Given a scalar X return some value ( a real number ) .
"""Given a scalar X, return some value (a real number).""" # for tracing
X