I am trying to use a Manipulate
expression to plot $f(x)$, a function of $x$ and dependent parameters $a$, $b$ and $c$. So the x-axis is $x$ and the y-axis is $f(x)$. Also, I want to add a point to the plot. The expression giving the point is $g(a,b,c)$. So basically what I want to do is that each time I change $a$, $b$ or $c$, I get a updated line for $f(x)$ and an updated point corresponding to $g(a,b,c)$, both of which will show in the plot.
How can I do that?
Here is the code:
Manipulate[
Plot[(x - 1)*(a - b)*c, {x, 0, 1}, PlotRange -> 2],
{a, 0, 1},
{b, 0, 1},
{c, 5, 50}]
The point is given by g = a^2 + b - c
. I am not sure how to include the point into the plot.
f`` how and
g. We need the see the
Manipultat e` expression you wrote. With that additional information, unless you doing something really weird, it should easy to show you how to use the xy-coordinates produced byg
in anEpilog
option given to your plot/ $\endgroup$g
only gives a single number, not a list of two numbers that could be used to plot a point. As it is,g
could be used to plot a horizontal or vertical line in the plot or it could be displayed on the plot as number, but it can't be shown on the plot as point. Can you clarify how expectg
to show up in the plot? $\endgroup$