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


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

Manipulate: Tracking symbols which are not stated explicitly

Started byabed.alnaif@gmail.com
First post2013-01-10 07:20 +0000
Last post2013-01-11 02:39 +0000
Articles 2 — 2 participants

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


Contents

  Manipulate: Tracking symbols which are not stated explicitly abed.alnaif@gmail.com - 2013-01-10 07:20 +0000
    Re: Manipulate: Tracking symbols which are not stated explicitly "Rolf.Mertig@gmail.com" <Rolf.Mertig@gmail.com> - 2013-01-11 02:39 +0000

#13081 — Manipulate: Tracking symbols which are not stated explicitly

Fromabed.alnaif@gmail.com
Date2013-01-10 07:20 +0000
SubjectManipulate: Tracking symbols which are not stated explicitly
Message-ID<kclq3q$9pj$1@smc.vnet.net>
Hello,
I am trying to use the Manipulate command to adjust symbols which are not stated explicitly within the command. Is this possible? I am using Mathematica 7.0.1.0. Consider these examples:

The code below works:

Manipulate[
 reprule = {end -> endval};
 NDSolve[{y''[x] + Sin[y[x]] y[x] == 0, y[0] == 1, y'[0] == 0}, 
  y, {x, 0, end} /. reprule], {endval, 10, 20}]

However, this one tells me that "Endpoint endval is not a real number":

reprule = {end -> endval};
Manipulate[
 NDSolve[{y''[x] + Sin[y[x]] y[x] == 0, y[0] == 1, y'[0] == 0}, 
  y, {x, 0, end} /. reprule], {endval, 10, 20}]

[toc] | [next] | [standalone]


#13097

From"Rolf.Mertig@gmail.com" <Rolf.Mertig@gmail.com>
Date2013-01-11 02:39 +0000
Message-ID<kcnu0e$f9k$1@smc.vnet.net>
In reply to#13081
With[{reprule={end->endval}},
Manipulate[NDSolve[{y''[x]+Sin[y[x]] y[x]==0,y[0]==1,y'[0]==0},y,{x,0,end}/.reprule],{endval,10,20}]
]

will work.

Am Donnerstag, 10. Januar 2013 08:20:26 UTC+1 schrieb abed....@gmail.com:
> Hello,
> 
> I am trying to use the Manipulate command to adjust symbols which are not stated explicitly within the command. Is this possible? I am using Mathematica 7.0.1.0. Consider these examples:
> 
> 
> 
> The code below works:
> 
> 
> 
> Manipulate[
> 
>  reprule = {end -> endval};
> 
>  NDSolve[{y''[x] + Sin[y[x]] y[x] == 0, y[0] == 1, y'[0] == 0}, 
> 
>   y, {x, 0, end} /. reprule], {endval, 10, 20}]
> 
> 
> 
> However, this one tells me that "Endpoint endval is not a real number":
> 
> 
> 
> reprule = {end -> endval};
> 
> Manipulate[
> 
>  NDSolve[{y''[x] + Sin[y[x]] y[x] == 0, y[0] == 1, y'[0] == 0}, 
> 
>   y, {x, 0, end} /. reprule], {endval, 10, 20}]

[toc] | [prev] | [standalone]


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


csiph-web