1
$\begingroup$

I want to run an animation with Animateafter another ends, not at same time. This is my code:enter image description here

Its possible run r from 5 to 2 and, later, run s rom 2 to 0?

$\endgroup$
1

1 Answer 1

1
$\begingroup$

One possible way:

Animate[Plot[Evaluate@If[r >= 2, Sqrt[x^2 + (1 - r/2) E^(r/2)], 
{Sqrt[x^2], Sqrt[x^2 + (1 - r/2) E^(r/2)]}], {x, -3, 3}, 
  PlotRange -> {{-3, 3}, {0, 3}}], {r, 5, 0}]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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