[Date Index] [Thread Index] [Author Index]
Re: Sequential Plotting, and "INKEY$", in Mathematica?
In article <3mi356$afn at news0.cybernetics.net> siegman at ee.stanford.edu (A. E. Siegman) writes: > 2) Is there any way to start mma on, for example, an iterative or > lengthy calculation, and have the program test from time to time > whether any input key has been hit _while mma was running_? > (In other words, the equivalent of the INKEY$ function in Basic.) > > Again, I think this is a major weakness of mma. You might want to > start an iterative calculation in mma, watch how the initial results > evolve, then hit a key to make the program branch or change values, > without stopping it (and without having it stop and wait for you > to come back and enter some input). If you are using the Notebook interface you might try the "Enter Dialog" button in the "Action" menu. It allows you to create a "Mathematica session within the Mathematica session" (even recursively). You can inspect the values of variables in your calculations, and also in many built-in functions. For example, if you have a lengthy problem for FindMinimum, you can inspect the state of the optimization by this method. Don't forget to hit "Exit Dialog" after you finished the inspection or otherwise your main calculation will not continue. Arnd Roth Abteilung Zellphysiologie Max-Planck-Institut fuer Medizinische Forschung Postfach 10 38 20, D-69028 Heidelberg, Germany