MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Phase Plot of Simple Harmonic Motion using Mathematica ??


I would change the definition of solution so it's a simple function of t, then you'd take its derivative/do the plot in the usual way.

solution[t_] = 
 NDSolve[{x''[t] + k/m x[t] == 0, x[0] == 5, x'[0] == 0}, 
   x[t], {t, 0, 250}][[1, 1, 2]]
ParametricPlot[{solution[t], solution'[t]}, {t, 0, 100}]



  • Prev by Date: Re: unexpected behaviour of Sum
  • Next by Date: equationtreker steamplot
  • Previous by thread: Re: Phase Plot of Simple Harmonic Motion using Mathematica ??
  • Next by thread: Re: Phase Plot of Simple Harmonic Motion using Mathematica ??