Create an animation that plots the following two functionsWhat changes in Dynamic have occurred from...

Why do objects rebound after hitting the ground?

Is there any danger of my neighbor having my wife's signature?

How do I narratively explain how in-game circumstances do not mechanically allow a PC to instantly kill an NPC?

What's the reason that we have a different number of days each month?

'DataFrame' object has no attribute 'to_dataframe'

Buying a "Used" Router

Why might frozen potatoes require a hechsher?

Why don't you get burned by the wood benches in a sauna?

Why did Ylvis use "go" instead of "say" in phrases like "Dog goes 'woof'"?

Trying to detect if any checked values contains a specific string

How to get a 2D Plot from a 3D Listplot?

Given a total recursive function, can you always compute its fixed-point?

Minimum Viable Product for RTS game?

Explicit Riemann Hilbert correspondence

What is an efficient way to digitize a family photo collection?

Even as admin, I cannot edit DefaultFonts.plist for Notes.app. What am I doing wrong?

How do I add a strong "onion flavor" to the biryani (in restaurant style)?

Is practicing on a digital piano harmful to an experienced piano player?

Did ancient Germans take pride in leaving the land untouched?

Why do neural networks need so many examples to perform?

Smooth projection of a surf plot - tikz/gnuplot

Isn't a semicolon (';') needed after a function declaration in C++?

How can I give a Ranger advantage on a check due to Favored Enemy without spoiling the story for the player?

Sticky Strike or Sticky Delta



Create an animation that plots the following two functions


What changes in Dynamic have occurred from Mathematica 7 to Mathematica 8 that might induce incompatibilities?Width of two plotsCombining Two Manipulated Plots Dependent on Same VariablesHow to manipulate lists of parameters?Putting two functions in one manipulate plotHow can I choose a suitable refresh rate to make a good animation of the wagon-wheel effect?Manipulate and ListPlot in a single chartcombining two plots with different scalesInverse of a linear combination of two functionsProblem get the difference between two plots using their data













2












$begingroup$


How do I create an animation that plots the following two functions? Let x vary from 0 to 15, set the y-values to range from -90 to 90 and include the fill between them. Do not include the axes in the plot.
f(x) = x^2 - a*x + 20 + a where a varies from 10 to 15.
g(x) = -x^2 + bx + b where b varies from 15 to 10.



I've tried Manipulate[
Plot[f[x, a], g[x, b], {x, 0, 15}], {a, 10, 15}, {b, 15, 10}]
, but that doesn't work.










share|improve this question









New contributor




Claire Jin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$

















    2












    $begingroup$


    How do I create an animation that plots the following two functions? Let x vary from 0 to 15, set the y-values to range from -90 to 90 and include the fill between them. Do not include the axes in the plot.
    f(x) = x^2 - a*x + 20 + a where a varies from 10 to 15.
    g(x) = -x^2 + bx + b where b varies from 15 to 10.



    I've tried Manipulate[
    Plot[f[x, a], g[x, b], {x, 0, 15}], {a, 10, 15}, {b, 15, 10}]
    , but that doesn't work.










    share|improve this question









    New contributor




    Claire Jin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.







    $endgroup$















      2












      2








      2





      $begingroup$


      How do I create an animation that plots the following two functions? Let x vary from 0 to 15, set the y-values to range from -90 to 90 and include the fill between them. Do not include the axes in the plot.
      f(x) = x^2 - a*x + 20 + a where a varies from 10 to 15.
      g(x) = -x^2 + bx + b where b varies from 15 to 10.



      I've tried Manipulate[
      Plot[f[x, a], g[x, b], {x, 0, 15}], {a, 10, 15}, {b, 15, 10}]
      , but that doesn't work.










      share|improve this question









      New contributor




      Claire Jin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.







      $endgroup$




      How do I create an animation that plots the following two functions? Let x vary from 0 to 15, set the y-values to range from -90 to 90 and include the fill between them. Do not include the axes in the plot.
      f(x) = x^2 - a*x + 20 + a where a varies from 10 to 15.
      g(x) = -x^2 + bx + b where b varies from 15 to 10.



      I've tried Manipulate[
      Plot[f[x, a], g[x, b], {x, 0, 15}], {a, 10, 15}, {b, 15, 10}]
      , but that doesn't work.







      plotting manipulate animation






      share|improve this question









      New contributor




      Claire Jin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Claire Jin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 54 mins ago









      MarcoB

      36.2k556112




      36.2k556112






      New contributor




      Claire Jin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 hours ago









      Claire JinClaire Jin

      111




      111




      New contributor




      Claire Jin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Claire Jin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Claire Jin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          4












          $begingroup$

          You call f and g with two arguments, but they are only defined for a single argument. After fixing several typos, this seems to work:



          f[x_, a_] := x^2 - a x + 20 + a;
          g[x_, b_] := -x^2 + b x + b;
          Manipulate[
          Plot[Evaluate[{f[x, a], g[x, b]}], {x, 0, 15}],
          {a, 10, 15}, {b, 10, 15}
          ]





          share|improve this answer









          $endgroup$









          • 1




            $begingroup$
            Nice answer! You can also keep the axes from moving with PlotRange->{-100,100} within Plot.
            $endgroup$
            – mjw
            1 hour ago






          • 1




            $begingroup$
            With Filling and other items: Manipulate[ Plot[ {f[x, a], g[x, b]}, {x, 0, 15}, Axes -> False, PlotRange -> {-90, 90}, Filling -> {1 -> {2}}, PlotLegends -> Placed[{f[x, a], g[x, b]}, {0.2, 0.15}]], {a, 10, 15, 0.1}, {b, 15, 10, -0.1}, AutoAction -> True]
            $endgroup$
            – Bob Hanlon
            1 hour ago











          Your Answer





          StackExchange.ifUsing("editor", function () {
          return StackExchange.using("mathjaxEditing", function () {
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          });
          });
          }, "mathjax-editing");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "387"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Claire Jin is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f192125%2fcreate-an-animation-that-plots-the-following-two-functions%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4












          $begingroup$

          You call f and g with two arguments, but they are only defined for a single argument. After fixing several typos, this seems to work:



          f[x_, a_] := x^2 - a x + 20 + a;
          g[x_, b_] := -x^2 + b x + b;
          Manipulate[
          Plot[Evaluate[{f[x, a], g[x, b]}], {x, 0, 15}],
          {a, 10, 15}, {b, 10, 15}
          ]





          share|improve this answer









          $endgroup$









          • 1




            $begingroup$
            Nice answer! You can also keep the axes from moving with PlotRange->{-100,100} within Plot.
            $endgroup$
            – mjw
            1 hour ago






          • 1




            $begingroup$
            With Filling and other items: Manipulate[ Plot[ {f[x, a], g[x, b]}, {x, 0, 15}, Axes -> False, PlotRange -> {-90, 90}, Filling -> {1 -> {2}}, PlotLegends -> Placed[{f[x, a], g[x, b]}, {0.2, 0.15}]], {a, 10, 15, 0.1}, {b, 15, 10, -0.1}, AutoAction -> True]
            $endgroup$
            – Bob Hanlon
            1 hour ago
















          4












          $begingroup$

          You call f and g with two arguments, but they are only defined for a single argument. After fixing several typos, this seems to work:



          f[x_, a_] := x^2 - a x + 20 + a;
          g[x_, b_] := -x^2 + b x + b;
          Manipulate[
          Plot[Evaluate[{f[x, a], g[x, b]}], {x, 0, 15}],
          {a, 10, 15}, {b, 10, 15}
          ]





          share|improve this answer









          $endgroup$









          • 1




            $begingroup$
            Nice answer! You can also keep the axes from moving with PlotRange->{-100,100} within Plot.
            $endgroup$
            – mjw
            1 hour ago






          • 1




            $begingroup$
            With Filling and other items: Manipulate[ Plot[ {f[x, a], g[x, b]}, {x, 0, 15}, Axes -> False, PlotRange -> {-90, 90}, Filling -> {1 -> {2}}, PlotLegends -> Placed[{f[x, a], g[x, b]}, {0.2, 0.15}]], {a, 10, 15, 0.1}, {b, 15, 10, -0.1}, AutoAction -> True]
            $endgroup$
            – Bob Hanlon
            1 hour ago














          4












          4








          4





          $begingroup$

          You call f and g with two arguments, but they are only defined for a single argument. After fixing several typos, this seems to work:



          f[x_, a_] := x^2 - a x + 20 + a;
          g[x_, b_] := -x^2 + b x + b;
          Manipulate[
          Plot[Evaluate[{f[x, a], g[x, b]}], {x, 0, 15}],
          {a, 10, 15}, {b, 10, 15}
          ]





          share|improve this answer









          $endgroup$



          You call f and g with two arguments, but they are only defined for a single argument. After fixing several typos, this seems to work:



          f[x_, a_] := x^2 - a x + 20 + a;
          g[x_, b_] := -x^2 + b x + b;
          Manipulate[
          Plot[Evaluate[{f[x, a], g[x, b]}], {x, 0, 15}],
          {a, 10, 15}, {b, 10, 15}
          ]






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 hours ago









          Henrik SchumacherHenrik Schumacher

          54.7k474153




          54.7k474153








          • 1




            $begingroup$
            Nice answer! You can also keep the axes from moving with PlotRange->{-100,100} within Plot.
            $endgroup$
            – mjw
            1 hour ago






          • 1




            $begingroup$
            With Filling and other items: Manipulate[ Plot[ {f[x, a], g[x, b]}, {x, 0, 15}, Axes -> False, PlotRange -> {-90, 90}, Filling -> {1 -> {2}}, PlotLegends -> Placed[{f[x, a], g[x, b]}, {0.2, 0.15}]], {a, 10, 15, 0.1}, {b, 15, 10, -0.1}, AutoAction -> True]
            $endgroup$
            – Bob Hanlon
            1 hour ago














          • 1




            $begingroup$
            Nice answer! You can also keep the axes from moving with PlotRange->{-100,100} within Plot.
            $endgroup$
            – mjw
            1 hour ago






          • 1




            $begingroup$
            With Filling and other items: Manipulate[ Plot[ {f[x, a], g[x, b]}, {x, 0, 15}, Axes -> False, PlotRange -> {-90, 90}, Filling -> {1 -> {2}}, PlotLegends -> Placed[{f[x, a], g[x, b]}, {0.2, 0.15}]], {a, 10, 15, 0.1}, {b, 15, 10, -0.1}, AutoAction -> True]
            $endgroup$
            – Bob Hanlon
            1 hour ago








          1




          1




          $begingroup$
          Nice answer! You can also keep the axes from moving with PlotRange->{-100,100} within Plot.
          $endgroup$
          – mjw
          1 hour ago




          $begingroup$
          Nice answer! You can also keep the axes from moving with PlotRange->{-100,100} within Plot.
          $endgroup$
          – mjw
          1 hour ago




          1




          1




          $begingroup$
          With Filling and other items: Manipulate[ Plot[ {f[x, a], g[x, b]}, {x, 0, 15}, Axes -> False, PlotRange -> {-90, 90}, Filling -> {1 -> {2}}, PlotLegends -> Placed[{f[x, a], g[x, b]}, {0.2, 0.15}]], {a, 10, 15, 0.1}, {b, 15, 10, -0.1}, AutoAction -> True]
          $endgroup$
          – Bob Hanlon
          1 hour ago




          $begingroup$
          With Filling and other items: Manipulate[ Plot[ {f[x, a], g[x, b]}, {x, 0, 15}, Axes -> False, PlotRange -> {-90, 90}, Filling -> {1 -> {2}}, PlotLegends -> Placed[{f[x, a], g[x, b]}, {0.2, 0.15}]], {a, 10, 15, 0.1}, {b, 15, 10, -0.1}, AutoAction -> True]
          $endgroup$
          – Bob Hanlon
          1 hour ago










          Claire Jin is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Claire Jin is a new contributor. Be nice, and check out our Code of Conduct.













          Claire Jin is a new contributor. Be nice, and check out our Code of Conduct.












          Claire Jin is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Mathematica Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f192125%2fcreate-an-animation-that-plots-the-following-two-functions%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Szabolcs (Ungheria) Altri progetti | Menu di navigazione48°10′14.56″N 21°29′33.14″E /...

          Discografia di Klaus Schulze Indice Album in studio | Album dal vivo | Singoli | Antologie | Colonne...

          How to make inet_server_addr() return localhost in spite of ::1/128RETURN NEXT in Postgres FunctionConnect to...