0

dear community!

How do I make this construction work?

f[x_] := x^2 + b
Manipulate[
 Plot[
  Evaluate [f[x_]], {x, 0, 5},
  ImageSize -> Large,
  PlotRange -> All
  ],
 {{b, 0.1}, 0, 2, Appearance -> "Labeled" }
 ]

Thank you very much for detailed reply and suggested reading.

Andrey Kazak
  • 15
  • 1
  • 5

1 Answers1

2

For example:

f[x_, b_] := x^2 + b
Manipulate[Plot[f[x, b], {x, 0, 5}, ImageSize -> Large, PlotRange -> All, AxesOrigin -> {0, 0}], 
          {{b, 0.1}, 0, 2}]

Mathematica graphics

Dr. belisarius
  • 115,881
  • 13
  • 203
  • 453
  • I know this question is a duplicate; in fact I think you answered the earlier one. Would you help me find it? – Mr.Wizard Feb 20 '15 at 18:16
  • I found it: (10605). Next time please search before answering. – Mr.Wizard Feb 20 '15 at 18:18
  • I forget a great deal, nevertheless I do my best to keep the site organized. The original question came up rather quickly searching for Manipulate and Plot; you could likely have found it faster than writing this answer. I am just asking for help with the process. If you search and find nothing by all means post an answer. – Mr.Wizard Feb 20 '15 at 18:28
  • 2
    @Mr.Wizard Sometimes I just want to relax and answer simple questions. Almost always trying to do my best. Anyway, please try to forgive misbehaving children like me. – Dr. belisarius Feb 20 '15 at 18:44
  • 1
    lol -- Okay, point taken. Thanks for having a sense of humor about it. Sorry if I was rude. I feel a bit overwhelmed these days chasing duplicates. – Mr.Wizard Feb 20 '15 at 18:47
  • @Mr.Wizard Don't worry, you're doing a great job. As an aside, I'm not always in the mood to spend more time searching a dup than what takes me writing a one-liner. Nevertheless I understand that keeping the site clean is crucial, so I try to balance as much as I can. – Dr. belisarius Feb 20 '15 at 18:54
  • Thank you very much for taking time and answering the question. Excuse me please for posting a duplicate. Next time I will be searching more thoroughly. – Andrey Kazak Feb 21 '15 at 01:16