Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

12
  • $\begingroup$ Thank you for the answer. Just as a follow up, what if I want to use a and e in the same expression, say, a + e. How Dynamic wrapper can be used in this case? $\endgroup$ Commented Jul 29, 2015 at 7:56
  • 1
    $\begingroup$ @garej for full controll over evaluation I'd go with DynamicModule and manually written solution. But in this qase when you put Dynamic[a + e] it still works right, doesn't it? $\endgroup$ Commented Jul 29, 2015 at 8:03
  • $\begingroup$ right! Now I clearily see the point. Thank's for a tip. $\endgroup$ Commented Jul 29, 2015 at 8:08
  • $\begingroup$ @garej great :) good luck. $\endgroup$ Commented Jul 29, 2015 at 8:12
  • $\begingroup$ @Kuba A quick question. Why doesn't wrapping e in Refresh work here? Refresh[e = RandomVariate[NormalDistribution[0, sigma], n], TrackedSymbols :> {sigma, n}]; I thought for sure this was an alternative but it does not work. $\endgroup$ Commented Jul 29, 2015 at 10:10