Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

show curves simultaneously

  • To: mathgroup at smc.vnet.net
  • Subject: [mg115179] show curves simultaneously
  • From: manel zerelli <manel.zerelli at gmail.com>
  • Date: Tue, 4 Jan 2011 04:20:51 -0500 (EST)

hi,
i want to solve two differential equations in which a parameter "r"
vary in an intervall. for that i want to see the effect of this
variation at each time, my problem is to show all the possible values
of the parameter "r" at each instant t and i want to show all curves
simultaneoutly for that i tried to use the loop "for" but i haven' t a
result.

Manipulate[
For[r = 1, r<  4, r++,
sol = DSolve[{\[Theta]'[t] ==  i[t],
i'[t] == - \[Theta][t] - r i[t] + 10,
i[0] == 0, \[Theta][0] == 0}, {i, \[Theta]}, t];
ParametricPlot[Evaluate[{i[t], \[Theta][t]} /. sol], {t, 0, n},
PlotRange ->  {{-10, 10}, {-1, 15}}]], {n, 0, 7}]

thank you in advance.


  • Prev by Date: Re: need help with CUDA setup on my MacBook Pro
  • Next by Date: Re: dissabling code segments
  • Previous by thread: Re: need help with CUDA setup on my MacBook Pro
  • Next by thread: quadp