The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Monitoring status of dynamic calculation
Replies: 1   Last Post: Sep 26, 2009 6:11 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Goyder Dr HGD

Posts: 59
Registered: 1/29/05
Monitoring status of dynamic calculation
Posted: Sep 25, 2009 7:51 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have a notebook with many (possibly 100) dynamic variables. I do a
calculation using these variables and get a result. If I change one of
my dynamic variables then the results of the calculation are no longer
correct and I need to do the calculation again. What I need is a
method for identifying the status of the calculation. Is it current
and correct or has one of the variables changed and it is now out-of-

I give a toy example below where pressing a button corresponds to
doing the calculation and setting a status flag to current. If I
change one of the dynamic variables then I want the status to change
to out-of-date. I give an input field with a dynamic with a second
argument which enables me to change the status. This works but my
problem is that I have many ways of changing the dynamic variables and
I cannot associate each with a two argument dynamic. I thus need a
general way of checking to see if a variable has changed and if so
updating the status. Is this possible?

Hugh Goyder

(divide the cell where line spaces occur)




Row[{Button["Mean",b=Mean[a[[All,2]]];Status="Current"],"Mean =
",Dynamic[b]," Status = ",Dynamic[Status]}]



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.