so if the function is not a prod, cos, sin or x, return y? what if its a random function which you didnt define?

```
elif f[0] == "Y":
    return y
else 
    raise Exception("Function not defined")