Re: NDolve + ParametricPlot

• To: mathgroup at smc.vnet.net
• Subject: [mg67529] Re: NDolve + ParametricPlot
• From: "Scout" <Scout at nodomain.com>
• Date: Fri, 30 Jun 2006 04:13:49 -0400 (EDT)
• References: <e7vkhi\$sjo\$1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```"Paolo Pani" <paolopani at RIMUOVEREgmail.com>
news:e7vkhi\$sjo\$1 at smc.vnet.net...
> Hi, i'm new with Mathematica..i'm getting mad with expressions like this:
>
> sol = NDSolve[{x''[t] == x[t], x[0] == 1, x'[0] == 1.1}, x, {t, 0, 3}];
> Plot[x[t] /. sol, {t, 0, 3}];
> Plot[D[x[t]] /. sol, {t, 0, 3}];
> ParametricPlot[Evaluate[{x[t] /. sol, D[x[t] /. sol]}], {t, 0, 3}];
>
> The first two Plots are ok, the third give me:
>
>
>
> ParametricPlot::pptr: {InterpolatingFunction[{{0., 3.}}, {2, 2, True,
> Real, \
> {3}, {0}}, {{\[LeftSkeleton]1\[RightSkeleton]}}, {{0, 3, 6, 9, 12, 15, 18,
> \
> 21, 24, 27, \[LeftSkeleton]32\[RightSkeleton]}, {1., 1.1,
> \[LeftSkeleton]8\
> \[RightSkeleton], \[LeftSkeleton]113\[RightSkeleton]}}, {Automatic}][t]}
> does \
> not evaluate to a pair of real numbers at t = 1.25`*^-7.
>
>
>
>
> ... and "More..." does tell nothing more.
>
> Where is my mistake?
>
> Thanks and sorry for my bad english
>
> Paolo
>

Try with:

ParametricPlot[{x[t] , x'[t]} /. sol, {t, 0, 3}];

Regards,
~Scout~

```

• Prev by Date: calling maximize recursively
• Next by Date: Re: NDolve + ParametricPlot
• Previous by thread: Re: NDolve + ParametricPlot
• Next by thread: Re: NDolve + ParametricPlot