Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Using manipulate in two cells in one note book crashes my computer.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98156] Re: Using manipulate in two cells in one note book crashes my computer.
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 1 Apr 2009 05:53:57 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <gqsn4k$3pe$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

You use th same updated global variable in the two Manipulate[]
and you are wondering why the change in one Manipulate[] also cause to
change the second Manipulate[] ,re-cause the change in the first, cause
the change in the second .. and so on. Use clean conde with local
variables and:

Module[{dsol, b, k, b0, bp0, t},
  dsol = DSolve[{b''[t] == -Subscript[k, 1] Subscript[k, 2] b[t] -
        Subscript[k, 1] b'[t], b[0] == b0, b'[0] == bp0}, b[t], t][[1]];
  Manipulate[
   Plot[Evaluate[
     b[t] /. dsol /. {Subscript[k, 1] -> k1, Subscript[k, 2] -> k2,
       b0 -> \[ScriptB]0, bp0 -> \[ScriptB]p0}], {t, 0, 10}], {k1, 0.1,
     10}, {k2, 0.1, 10}, {\[ScriptB]0, 0.1, 10}, {\[ScriptB]p0, 0.1,
    10}]
  ]

works fine.

Regards
   Jens

sean k wrote:
> By the way, I'm using Mathematica 7.0.0. Windows vista home edition. 32 bit. I also recently updated to Java runtime 6.0 and I had some problems with Mathematica help crashing. So I uninstalled and reinstalled the Mathematica. 
> 
> Also have Mathematica 6.0 installed. (This problem persists in Mathematica 6 also )
> 
> I also have another CAS system and other stuff installed on here, but not sure if any of that is an issue. 
> 
> Anyway, Thanks for any info.
> 
> 
> 
> 
> 
> 
>       
> 


  • Prev by Date: Re: DeleteCases
  • Next by Date: Re: Using manipulate in two cells in one note book crashes my computer.
  • Previous by thread: Re: Using manipulate in two cells in one note book crashes my
  • Next by thread: Re: Using manipulate in two cells in one note book crashes my computer.