I'm trying to plot a family of functions differing only by a constant $c$. The function is: $2x^2-5x+c$. In order to plot them I'm using the following code:
Plot[For[i = 0, i < 4, i++, {2 x^2 - 5 x + i}], {x, -5, 5}]
but there's no output besides the axis. The iinside the loop For is equivalent to the constant $c$ of the function. How can I plot them using the For loop inside the Plot command? Is this possible?
Table.Foris rarely used in Mathematica (https://mathematica.stackexchange.com/questions/134609/why-should-i-avoid-the-for-loop-in-mathematica). – Michael E2 Aug 14 '18 at 00:27Table? – Levy Aug 14 '18 at 00:29ForreturnsNull, always. So there is nothing to plot. Do as Michael E2 instructs you. – m_goldberg Aug 14 '18 at 00:29