Skip to main content
9 events
when toggle format what by license comment
Aug 7, 2015 at 20:02 comment added Michael E2 @David, I'm not sure what to do, nor what you think can be done. In this case, the contour plot must be recomputed whenever the level or the critical point changes. I did think about speed here, and that's why I added PlotPoints -> ControlActive[9, 25]: I think it's the fastest way to get sufficient quality. (You can bump the 9 down to 7 or 5, but you don't gain much or lose much, as I recall.) Is there something you see that I'm overlooking?
Aug 7, 2015 at 19:51 comment added David If you don't have the time, please ignore this request. If you do, do you think you could add an update to this block of code based on your current work on http://mathematica.stackexchange.com/questions/84445/does-dynamicmodule-cure-problem-with-manipulate/90075#90075 ? It would be another great example to look at.
Aug 6, 2015 at 11:40 comment added Michael E2 @David Looks good; global variables such as f etc. always present such pitfalls; localizing them is right approach and especially important when handing demonstrations off to independent humans to use (such as students). You might also be interested in this issue, mathematica.stackexchange.com/questions/90013/…, which came up while I played with your problem.
Aug 6, 2015 at 11:35 comment added Michael E2 @David 1) You're right. I was playing with two different forms and forgot to remove it. 2) Look up Row; the 2nd arg is riffled between the row elements. 3) Pane keeps the label the same size so the it doesn't jump around when the number of digits change. 4) Look up ControlActive; it's for speed when the control is moved, and odd so that a sample point lies inside the ellipsoid-like figure at an extrema and the level is small and of the right sign (positive for {2,0,0} in the example).
Aug 6, 2015 at 11:24 history edited Michael E2 CC BY-SA 3.0
Removed unnecessary code
Aug 6, 2015 at 4:18 comment added David As usual, if later in my notebook, I type Clear[f] or x=12, this Manipulate is ruined, so I've done the typical thing we've talked about in the past to make an adjustment. See my original post. What do you think?
Aug 6, 2015 at 3:55 comment added David As usual, extremely helpful. Couple questions: 1) Is Contours->{{0}} needed? 2) In the Row command, what is the purpose of the " " at the end? 3) Why is the Pane command needed? 4) ControlActive[9,25} does what? Plot 9 points when dragging a slider, than 25 when you let go?
Aug 6, 2015 at 2:57 vote accept David
Aug 5, 2015 at 17:50 history answered Michael E2 CC BY-SA 3.0