Re: Manipulate and DSolve
- To: mathgroup at smc.vnet.net
- Subject: [mg81910] Re: Manipulate and DSolve
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Sat, 6 Oct 2007 04:43:27 -0400 (EDT)
- References: <fe4tn6$c1$1@smc.vnet.net>
Hi,
try
Manipulate[Dynamic@ Plot[Evaluate[x[t] /. ds], {t, 0, 1}], {k, -1, 1},
LocalizeVariables -> False]
Regards
Jens
janos wrote:
> Dear Colleagues,
>
> Manipulate[Plot[\[ExponentialE]^(k t), {t, 0, 1}], {k, -1, 1}]
>
> works fine. However, if I solve the corresponding ODE symbolically:
>
> ds = DSolve[{x'[t] == k x[t], x[0] == 1}, x[t], t][[1]]
>
> it does not work:
>
> Manipulate[Plot[Evaluate[x[t] /. ds], {t, 0, 1}], {k, -1, 1}]
>
> Could anyone help me please?
>
> Thank you, Janos
>
>