Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9243 > unrolled thread

Manipulate[Plot[Evaluate[expr]]]

Started byleigh pascoe <leigh@evry.inserm.fr>
First post2012-03-28 05:33 +0000
Last post2012-03-29 08:06 +0000
Articles 4 — 4 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Manipulate[Plot[Evaluate[expr]]] leigh pascoe <leigh@evry.inserm.fr> - 2012-03-28 05:33 +0000
    Re: Manipulate[Plot[Evaluate[expr]]] roby <roby.nowak@gmail.com> - 2012-03-28 10:02 +0000
    Re: Manipulate[Plot[Evaluate[expr]]] Tomas Garza <tgarza10@msn.com> - 2012-03-29 07:59 +0000
    Re: Manipulate[Plot[Evaluate[expr]]] Helen Read <readhpr@gmail.com> - 2012-03-29 08:06 +0000

#9243 — Manipulate[Plot[Evaluate[expr]]]

Fromleigh pascoe <leigh@evry.inserm.fr>
Date2012-03-28 05:33 +0000
SubjectManipulate[Plot[Evaluate[expr]]]
Message-ID<jku7s6$8jl$1@smc.vnet.net>
Could someone please help me with the syntax of a dynamic plot?

I would like to plot a function with 3 constants, for various values of
the constants (M, t and f say) and for the variable x going from zero to
50. I have been unable to find the correct syntax for the
Manipulate/Plot command. Here is one attempt that shows the function to
be evaluated and the 3 constants

Manipulate[
 Plot[M/\[Tau] \[Phi]^M E^(-(x/\[Tau])) (1 - E^(-(x/\[Tau])))^(
   M - 1), {x, 0, 50}], {{M, 1, 12, 1}, {\[Tau], 3, 15,
   1}, {\[Phi], .5, .8, .1}}]

Any suggestions would be appreciated.

LP

[toc] | [next] | [standalone]


#9254

Fromroby <roby.nowak@gmail.com>
Date2012-03-28 10:02 +0000
Message-ID<jkunj9$at2$1@smc.vnet.net>
In reply to#9243
On 28 Mrz., 07:33, leigh pascoe <le...@evry.inserm.fr> wrote:
> Could someone please help me with the syntax of a dynamic plot?
>
> I would like to plot a function with 3 constants, for various values of
> the constants (M, t and f say) and for the variable x going from zero to
> 50. I have been unable to find the correct syntax for the
> Manipulate/Plot command. Here is one attempt that shows the function to
> be evaluated and the 3 constants
>
> Manipulate[
>  Plot[M/\[Tau] \[Phi]^M E^(-(x/\[Tau])) (1 - E^(-(x/\[Tau])))^(
>    M - 1), {x, 0, 50}], {{M, 1, 12, 1}, {\[Tau], 3, 15,
>    1}, {\[Phi], .5, .8, .1}}]
>
> Any suggestions would be appreciated.
>
> LP

just a pair of braces { } too much.

Manipulate[
 Plot[M/\[Tau] \[Phi]^M E^(-(x/\[Tau])) (1 - E^(-(x/\[Tau])))^(M - 1),
{x, 0, 50}],
 {M, 1, 12, 1}, {\[Tau], 3, 15, 1}, {\[Phi], .5, .8, .1}
]


Robert

[toc] | [prev] | [next] | [standalone]


#9260

FromTomas Garza <tgarza10@msn.com>
Date2012-03-29 07:59 +0000
Message-ID<jl14p9$l8k$1@smc.vnet.net>
In reply to#9243
Right, and you might also use the Option PlotRange -> {{0, 50}, {0, 0.01}} to avoid the jumping as you move the sliders.
-Tomas

> Date: Wed, 28 Mar 2012 05:00:05 -0500
> From: roby.nowak@gmail.com
> Subject: Re: Manipulate[Plot[Evaluate[expr]]]
> To: mathgroup@smc.vnet.net
>
> On 28 Mrz., 07:33, leigh pascoe <le...@evry.inserm.fr> wrote:
> > Could someone please help me with the syntax of a dynamic plot?
> >
> > I would like to plot a function with 3 constants, for various values of
> > the constants (M, t and f say) and for the variable x going from zero to
> > 50. I have been unable to find the correct syntax for the
> > Manipulate/Plot command. Here is one attempt that shows the function to
> > be evaluated and the 3 constants
> >
> > Manipulate[
> >  Plot[M/\[Tau] \[Phi]^M E^(-(x/\[Tau])) (1 - E^(-(x/\[Tau])))^(
> >    M - 1), {x, 0, 50}], {{M, 1, 12, 1}, {\[Tau], 3, 15,
> >    1}, {\[Phi], .5, .8, .1}}]
> >
> > Any suggestions would be appreciated.
> >
> > LP
>
> just a pair of braces { } too much.
>
> Manipulate[
>  Plot[M/\[Tau] \[Phi]^M E^(-(x/\[Tau])) (1 - E^(-(x/\[Tau])))^(M - 1),
> {x, 0, 50}],
>  {M, 1, 12, 1}, {\[Tau], 3, 15, 1}, {\[Phi], .5, .8, .1}
> ]
>
>
> Robert
>

[toc] | [prev] | [next] | [standalone]


#9287

FromHelen Read <readhpr@gmail.com>
Date2012-03-29 08:06 +0000
Message-ID<jl155p$lei$1@smc.vnet.net>
In reply to#9243
On 3/28/2012 1:33 AM, leigh pascoe wrote:
> Could someone please help me with the syntax of a dynamic plot?
>
> I would like to plot a function with 3 constants, for various values of
> the constants (M, t and f say) and for the variable x going from zero to
> 50. I have been unable to find the correct syntax for the
> Manipulate/Plot command. Here is one attempt that shows the function to
> be evaluated and the 3 constants
>
> Manipulate[
>   Plot[M/\[Tau] \[Phi]^M E^(-(x/\[Tau])) (1 - E^(-(x/\[Tau])))^(
>     M - 1), {x, 0, 50}], {{M, 1, 12, 1}, {\[Tau], 3, 15,
>     1}, {\[Phi], .5, .8, .1}}]

You've got an extra set of braces. Try this.

Manipulate[
  Plot[M/\[Tau] \[Phi]^
     M E^(-(x/\[Tau])) (1 - E^(-(x/\[Tau])))^(M - 1), {x, 0, 50}], {M,
   1, 12, 1}, {\[Tau], 3, 15, 1}, {\[Phi], .5, .8, .1}]



-- 
Helen Read
University of Vermont

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web