06-02-2015, 02:16 PM
Is that even possible without a lot of synthetic and/or MCODE stunts? I got a Math/Stat Pac recently, and I'd like to be able to call the solver from other programs. There's a global label ("SOL") you can call if you've provided the function name and initial guesses in the appropriate registers, skipping the user-prompting routines, but the result still gets displayed with a bunch of alpha prompts.
Looking at the module code, SOL is basically a wrapper that calls label C, which does all the work, sets flag 0 if a root is found, and leaves the results in X and Y. After C returns, the SOL routine proceeds with the display functions. It doesn't seem to be doing any flag checking that would suggest a way to run it in silent mode.
If I could XEQ C directly, then I could easily take the results and handle them accordingly. Any clever ways to pull that off?
Looking at the module code, SOL is basically a wrapper that calls label C, which does all the work, sets flag 0 if a root is found, and leaves the results in X and Y. After C returns, the SOL routine proceeds with the display functions. It doesn't seem to be doing any flag checking that would suggest a way to run it in silent mode.
If I could XEQ C directly, then I could easily take the results and handle them accordingly. Any clever ways to pull that off?