       Re: newbie help

• To: mathgroup at smc.vnet.net
• Subject: [mg107663] Re: newbie help
• From: Tomas Garza <tgarza10 at msn.com>
• Date: Mon, 22 Feb 2010 03:09:17 -0500 (EST)
• References: <201002210924.EAA17152@smc.vnet.net>

```The Manipulate needs a small correction. Try this:

Manipulate[Plot[{\[Phi][t,c],0},{t,-3,3},PlotStyle->{Blue,{Red,Thick}},PlotRange->{-3,3}],{{c,-1},-1,1}]

Works fine.
As to the second part, delete the semicolon after the plot expression.

Other than that, there seems to be nothing wrong with your graphs.

If you've "never worked with this program before", as you say, then you really have gone a long way.

Tomas

> Date: Sun, 21 Feb 2010 04:24:11 -0500
> From: lorraine.ramos at gpisd.org
> Subject: [mg107641] newbie help
> To: mathgroup at smc.vnet.net
>
> I've never worked with this program before and I'm having trouble
> getting it to do what I want it to do. If there is a good resource to
> help translate the math to programing help it would be appreciated.
> This is what I'm working on:(I can upload my notebook if it is easier
> to help see what I did wrong)
> Solve the differential equation x' sin (x).
>    sol = DSolve[x'[t] == Sin[x[t]], x[t], t] // FullSimplify // Quiet
>
> \[Phi][t_, c_] := x[t] /. sol[] /. C -> c
> \[Phi][t, c]
>
> sol = DSolve[x'[t] == x[t]^2, x[t], t] // FullSimplify // Quiet
>
> \[Phi][t_, c_] := x[t] /. sol[] /. C -> c
> \[Phi][t, c]
>
> Manipulate[
>  Plot[{\[Phi][t, c], 0}, {t, -3, 3},
>   PlotStyle -> {Blue, {Red, Thick}}, PlotRange -> {-3, 3}], {c, -1,
>   1}]
>
> plot = VectorPlot[{1, x}, {t, 0, 10}, {x, -10, 10},
>    VectorScale -> 0.04];
>
> Show[plot, Frame -> True, AspectRatio -> Automatic]
>
> My graphs are not working right.

```

• References:
• newbie help
• From: lorrainetx <lorraine.ramos@gpisd.org>
• Prev by Date: Re: Manipulate piecewise functions,
• Next by Date: Digitizing plots with Mathematica (i.e. extracting data points from
• Previous by thread: newbie help
• Next by thread: Re: newbie help