- #1
chris_0101
- 65
- 0
Hey,
I am using Mathematica 8 and I finally figured out how to drag a point along a graph using a slider bar, which increases or decreases the x value. Now, I am stuck on how to display the y value for the changing x value on the screen.
My code is below:
parabola = Plot[x^2, {x, -4, 4}, Ticks -> False]
Manipulate [Show[parabola, Graphics [{Red, Disk [ {x, x^2}, 0.05]}],
PlotRange -> {{-4, 4}, {-4, 4}},
AspectRatio -> Automatic], {x, -4, 4}]
An image of my code
Any help is appreciated,
Thanks
I am using Mathematica 8 and I finally figured out how to drag a point along a graph using a slider bar, which increases or decreases the x value. Now, I am stuck on how to display the y value for the changing x value on the screen.
My code is below:
parabola = Plot[x^2, {x, -4, 4}, Ticks -> False]
Manipulate [Show[parabola, Graphics [{Red, Disk [ {x, x^2}, 0.05]}],
PlotRange -> {{-4, 4}, {-4, 4}},
AspectRatio -> Automatic], {x, -4, 4}]
An image of my code
Any help is appreciated,
Thanks