23,177 reputation
13377
bio website
location
age
visits member for 2 years, 10 months
seen 3 mins ago

Jan
17
comment Slider resistance and Play-Pausing with Manipulate, TabView, and attempt an granular TrackedSymbols?
I've added a small example as separate answer. This is the basic idea used in those demos. Those demos are more complicated, only because there are more tabs and controls, and use the Macro method by Leonid to help in the layout of the controls. See stackoverflow.com/questions/7551647/… for more information on the macro method. But for simple demos, you can just code the controls inline right there, and not use macros, as shown in the example.
Jan
17
answered Slider resistance and Play-Pausing with Manipulate, TabView, and attempt an granular TrackedSymbols?
Jan
16
comment Module and Local variable
Clear[x,y,z,t]; getIntersectionPoint[p1, p2, x, y, z, t] you are basically showing a problem that will show up with using Mathematica own functions. Try x=0; DSolve[y'[x]==x,y[x],x] and see what happens. Any way, as I said, please do not use this method. Use anything you like.
Jan
16
comment Module and Local variable
@developer2000 it is not "my solution". It is the solution used by Mathematica itself for its own commands as I explained. The idea is to pass those symbols to the function as well. However, you are not obliged to use this method if you do not want. use global variables or Blocks or any other method that you prefer. I just do not think those are the correct solution to this problem.
Jan
16
comment Module and Local variable
This is just a workaround. It is not a good solution to avoid using Module.
Jan
16
answered Module and Local variable
Jan
16
comment Slider resistance and Play-Pausing with Manipulate, TabView, and attempt an granular TrackedSymbols?
Note that one of my end goals was to have a fairly large set of control variables all in one tab (ones associated with preCalculateStuff), without cluttering up the rest. you can definitely do that. Here is demo with multiple tabs, each tab has in it many more controls that show up when selected. This is allow more controls to be put on the same screen area. demonstrations.wolfram.com/… This has three layers to have even more controls demonstrations.wolfram.com/…
Jan
16
answered Slider resistance and Play-Pausing with Manipulate, TabView, and attempt an granular TrackedSymbols?
Jan
16
comment Methods for NSolve
Still why is NSolve so much quicker than just Solve numerical methods in general are faster than symbolic, but not as accurate, everything else being equal.
Jan
16
comment PDE syntax question
my guess it is inconsistent because you are saying P=0 everywhere at time zero, but then say that P at left edge is 100 for any time t. But t=0 is any time t. Hence you have a conflict. is it zero or is it 100 at the left edge when time is zero?
Jan
15
answered Solving an ODE with parameters and conditions
Jan
13
awarded  Guru
Jan
13
comment Symmetric FrameMargins problem
it works ok on windows 7, V 9.01, screen shot: !Mathematica graphics
Jan
13
answered Using Locators in a non-standard Manipulate code
Jan
12
comment Using Locators in a non-standard Manipulate code
@LucaM I am not sure I follow you. Lets make sure we are on same page: To make the display move very fast, only way is not to update the stream plot for each mouse movement, right? But user still wants to see the charge moving with the mouse. So, now the charge moves with the mouse, and the fields are updated when the mouse is released. This is a compromise. If you want the field to update as the mouse moves, easy to do, but will be slow again. Unless number of points is reduced or StreamPlot call optimized, which might be possible but I have not looked at this as I do not use this function
Jan
12
answered Using Locators in a non-standard Manipulate code
Jan
12
revised Using Manipulate with a control variable for selective recalculation
made the option explicit
Jan
12
comment Using Manipulate with a control variable for selective recalculation
@LucaM added a version much faster, it uses ContinuousAction -> False on the Slider2D. This makes it fast, but you won't see the update until you release the mouse. Kept the old version there.
Jan
12
revised Using Manipulate with a control variable for selective recalculation
added new version
Jan
12
comment Using Manipulate with a control variable for selective recalculation
@LucaM making dynamics fast and optimized is something that has to be looked at in any method and that is not easy. There are few ways to make it is faster. You can for example make PerformanceGoal->"Speed", you can reduce the numbers/data used by StreamPlot? I am not familiar with StreamPlot and all its options. Also using ControlActive might help.