# Why can't I plot a recursively defined function without first expanding it? [closed]

I have a recursively-defined sequence of functions, g[t,n], that I cannot seem to plot without first evaluating and then referencing the result. What do I need to do to g to get it to plot correctly?

• Post your code not image. – zhk Jul 9 '17 at 16:21
• Try this Plot[Evaluate@g[t, 1], {t, 0, 4}] – zhk Jul 9 '17 at 16:26

g[t_, 0] := -9.8*t^2 + 10

• Try evaluating Block[{t = 0.1}, g[t, 1]] vs Block[{t = 0.1}, Evaluate @ g[t, 1]] – Carl Woll Jul 9 '17 at 17:09