import math


def f(x):
    """
    returns the value of the function for some given x

    Inputs:
    1.x : Input value

    Output: Function value
    """
    return (x*x*x - 3*x*x - x + 9)*(math.exp(x))