This snippet
mm = m
Manipulate[{mm, Plot[mm x, {x, 0, 1}]}, {m, 0, 1}]
(m
is not defined anywhere) produces a sadly fixed output, m
remains symbolic.
This instead
mm = m
Manipulate[Evaluate@{mm, Plot[mm x, {x, 0, 1}]}, {m, 0, 1}]
makes the first element of the list be dynamically evaluated, but not the Plot
, which remains empty because m
remains symbolic. Lastly,
mm = m
Manipulate[{%, Plot[% x, {x, 0, 1}]}, {m, 0, 1}]
gets the correct thing, everything is evaluated dynamically. Why?