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: [mg109845] Re: How to Enable Automatic Recalculation
  • From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
  • Date: Wed, 19 May 2010 20:14:19 -0400 (EDT)

Hi,

try to use := for b:=3+a. It doesn't evaluates the right-hand side
at time of assignment but everytime you use (evaluate) "b".

Cheers
Patrick

Am May 19, 2010 um 1:01 PM schrieb Victor Roberts:

> 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: How to Enable Automatic Recalculation
  • Next by Date: Re: Equals, Less, Greater, etc; Confused by this simple output.
  • Previous by thread: Re: How to Enable Automatic Recalculation
  • Next by thread: Re: How to Enable Automatic Recalculation