I'd like to have a ReplaceAll applied to every output in my notebook. When I try this using $Post, e.g. by writing
$Post = /.{i^2 -> -1}
it doesn't work. Anyone know an alternative?
|
I'd like to have a
it doesn't work. Anyone know an alternative? |
||||
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.
|
You have to read the documentation carefully:
The important word is applied because it suggests, that you have to give a function which takes the output and does something with it. Knowing this, you could have started to search the Documentation Center for function or, if you already knew it, to write down such a
Then you look at the first 3 examples in the documentation of
The rest is, to read and study the documentation carefully. Another approach would have been, to take the hint J.M. gave you and look at its
There, you would have seen, that the only unknown things to you are |
||||
|
|
$Post = (# /. {i^2 -> -1}) &do the job? – J. M.♦ Oct 31 '12 at 13:01