Message Boards Message Boards

0
|
5836 Views
|
4 Replies
|
1 Total Likes
View groups...
Share
Share this post:
GROUPS:

addressing an Output (or input)

Posted 11 years ago
POSTED BY: Gernot H
4 Replies
POSTED BY: David Reiss

You may already know this, but you can use the % sign to address the last output. For example,

Sqrt[%]

will always evaluate to the square root of the last output.

POSTED BY: Tim Mayes

You might want to use Dynamic.

In[1]:=     a = 4*4

In[2]:=   Dynamic[Sqrt[a]]

If you then change a, it will automatically change the square root as well. You don't even need to re-evaluate. I think that the whole point of the Out[3] labelling is that it gives a unique identifier to every output. If you want content to change dynamically, when you change values in the notebook, the preferred construct seems to by Dynamic.

Cheers, Marco

POSTED BY: Marco Thiel
Posted 11 years ago

Not 100% what I was looking for, but helpful for sure, thanks!

POSTED BY: Gernot H
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