I've defined a mathematica function that makes a taylor series of a function.
s4a[n_] := Normal[Series[f4a[a], {a, 0, n}]]
But I cannot plot it
Plot[s4a[5], {a,-2,2}]
...
General::stop: Further output of General::ivar will be suppressed during this calculation.
I understand I have a problem like described here: General::ivar is not a valid variable when plotting - what actually causes this and how to avoid it?
But I cannot define
s4a[n_] = Normal[Series[f4a[a], {a, 0, n}]]
Series::serlim: Series order specification n is not a machine-sized integer.
So how do I define a function that makes a series of order $n$ and can be plotted?
Edit:
I guess Plot[Evaluate[s4a[5]],{a,-2,2}] works though. Maybe this is the best solution
Plot[Evaluate[s4a[5]], {a, -2, 2}]give what you expect? – kglr Oct 14 '16 at 19:42