Graph Math Input on different slide

If you change your function for the vertical asymptotes to in terms of y, it will work. (Note: x=f(x) is equivalent to x=y)

function("f"):simpleFunction(input1.latex,"y")

Make sure to change in the graph as well: x=f(y).