Updated "Interchangeable Solutions" Module w/ Equation Library

01172017, 12:40 PM
(This post was last modified: 01262017 09:00 PM by Ángel Martin.)
Post: #1




Updated "Interchangeable Solutions" Module w/ Equation Library
SOLVE Equation Library
A fairly obscure module  the "Interchangeable Solutions" ROM includes the UPLE program #01475C of the same title written by H. Suarez. The main addition is now updated with a poorman's SOLVER ("SLV+") and a modest Equation Library  with 28 equations in all. See the attached QRG for more details. SLV+ can deal with up to 5 variables (obviously three at least), and uses the {AE} softkeys for variable data entry and execution. It's a FOCAL program based on an old routine written by D. Brunell and possibly published on PPC (lost the actual reference, let me know if you have it). It relies on the SOLVE function to find the roots of the equation, which is programmed in a way expected by the SLV+ routine. This means each equation in the library: 1. Shows its own variables menu in the LCD when called by SLV+ 2. Stores the known variables (in rgs. R01R05) after data input (user flag 22 clear) 4. Stores the unknown variable number (1 to 5) in R00, depending on the softkey pressed without actual data input (user flag 22 is set) 4. Includes the code for the SOLVE function to calculate the root within standard interval [0,1] or custom guesses. The ROM includes 28 equations, but of course it's likely you'll write your own  using these as examples. These are: Code: # NAME Description CF00 < Options > SF00 General comments: • You can press [R/S] at the “a^b=?” prompt to use the defaults. The default guess is the interval [0,1]. Most of the equations will find a root with this default setting, but using more accurate ones will likely reduce the execution times. Note however than custom guesses are *always* needed for those variables in a denominator of the formulas. • The “SLV+” program assumes the existence of at least three variables. Pressing the [D] and [E] keys for equations without a fourth or fifth variable will save the value in the data register (R04 / R05) but will *not* trigger the execution of FROOT (the menu will be shown again). • The attached module uses FROOT in the SandMath instead of the Advantage's SOLVE  you can change this as they're completely interchangeable (pun intended). • If no solution is found by FROOT the program will show the variables menu again. Remember also that the accuracy of the solutions is directly affected by the number of decimal places set in the display settings. PS. Updated MOD file attached 

01232017, 08:03 PM
Post: #2




RE: Updated "Interchangeable Solutions" Module w/ Equation Library
... the compiliation is somewhat weird but there are quite interesting applications / functions in the module. Did Monte include it in his ROMcollection?
Juergen 

01232017, 09:20 PM
Post: #3




RE: Updated "Interchangeable Solutions" Module w/ Equation Library
The updated ISOL is in the memory reference for V4 boards now.


01232017, 10:01 PM
Post: #4




RE: Updated "Interchangeable Solutions" Module w/ Equation Library  
02032017, 06:51 PM
Post: #5




RE: Updated "Interchangeable Solutions" Module w/ Equation Library  
« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)