Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: How to Enable Automatic Recalculation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109847] Re: How to Enable Automatic Recalculation
  • From: chris <aarthur at tx.rr.com>
  • Date: Wed, 19 May 2010 20:14:41 -0400 (EDT)

Victor, you should use :== instead of just ==
That way the evaluation is delayed.

Victor Roberts a =E9crit :
> I'm new to Mathematica, so perhaps there is a simple answer
> to this question.
>
> How to I set Mathematica so that when I change the value
> assigned to a variable it will automatically change all
> later calculations that use that variable.
>
> For example, if I set
>
> a == 5
>
> and
>
> b == 3 + a
>
> I would like the value of b updated each time I change the
> value of a.
>
> Right how, I need to recalculate each and every expression
> that uses the variable a if I change its value.  There must
> be a better way.
>
>
> --
> Vic Roberts
> Replace xxx with vdr in e-mail address.
>
>
>  



  • Prev by Date: Re: Scroll content inside InputField?
  • Next by Date: Re: How to Enable Automatic Recalculation
  • Previous by thread: Re: How to Enable Automatic Recalculation
  • Next by thread: Re: How to Enable Automatic Recalculation