noslowski
(Jake Trexel)
1
How do you plot a recursion equation such as
f[n_] := n f[n - 1]
Thanks,
Jake
Vitaliyk
(Vitaliy Kaurov)
2
As any data- or discrete- function.
Clear@f
f[1] = Pi;
f[n_] := f[n] = n f[n - 1]
ListLinePlot[Table[f[n], {n, 1, 5}], PlotTheme -> "Business"]
DiscretePlot[f[n], {n, 5}, PlotTheme -> "Business"]
noslowski
(Jake Trexel)
3
Thank you. If you don’t mind how would I plot two different functions to see if there intersection?
Thanks again
Jake
Vitaliyk
(Vitaliy Kaurov)
4
Again, same as with other functions. My recommendation is reading docs - there are many good examples there.
Clear[f, g];
f[1] = Pi;
f[n_] := f[n] = n f[n - 1];
g[1] = 2;
g[n_] := g[n] = n^3 + g[n - 1]
ListLinePlot[{
Table[f[n], {n, 1, 5}],
Table[g[n], {n, 1, 5}]
}, PlotTheme -> "Business"]
noslowski
(Jake Trexel)
5
Thank you very much for your help
Jake