2
$\begingroup$

Firstly I'm sorry if this has been asked before, but I couldn't find what I was looking for.

Say I have a function:

f[x, a] := x^2 + a

Is it possible to plot a single graph of all f[x, a] against x with a taking integer values up to some number N and x between -10 and 10?

$\endgroup$

closed as off-topic by Karsten 7., m_goldberg, MarcoB, user9660, dr.blochwave Dec 8 '15 at 7:50

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Karsten 7., m_goldberg, MarcoB, Community, dr.blochwave
If this question can be reworded to fit the rules in the help center, please edit the question.

5
$\begingroup$
Plot[Table[x^2 + a, {a, 0, 5}], 
    {x, -10, 10}]
$\endgroup$
  • $\begingroup$ Thank you so much. This is exactly what I needed. $\endgroup$ – harpreet bains Dec 7 '15 at 23:23
  • $\begingroup$ Perhaps, then, you could up-vote my answer by clicking the up triangle, or accepting my answer by clicking the check mark. $\endgroup$ – David G. Stork Dec 7 '15 at 23:32
  • $\begingroup$ I have now, I had to wait 8 minutes. I cant up-vote sorry, I dont have enough reputation. $\endgroup$ – harpreet bains Dec 7 '15 at 23:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.