Message Boards Message Boards

0
|
5455 Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Using Dynamic variables

Posted 3 years ago

I would like to know how to do this sum t+anynumber , where t is "Dynamic[Clock[{0, 20, 1}, 20]]" I have realized that t is not considered a number (NumericQ[t] is False).

Attachments:
POSTED BY: Ana Squadri
3 Replies

Hi, please read SE: Programming with Dynamic for deeper understanding.

POSTED BY: Kuba Podkalicki
Posted 3 years ago

It works..Thank you.. Could you help me to calculate "Cos[Dynamic[Clock[{0, 20, 1}, 20]]". I have also tried Dynamic[Cos[Clock[{0, 20, 1}, 20]]] and did not work.

POSTED BY: Ana Squadri
Posted 3 years ago

Hi Ana,

I think the Dynamic has to include the sum. e.g.

a = 100;
Dynamic[Clock[{0, 20, 1}, 20] + a]
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract