07-30-2022, 12:30 AM
(07-30-2022, 12:13 AM)Jack Wrote: Pete, unless you use rational arithmetic you are going to have round/off round/up errors
my only complaint about your string-math implementation is that it's not at all clear how you would use it outside of your demo
say for example that I want to use your string-math in a Gauss-Jordan system of linear equations solver, how would you go about it?
You'd have to code the system to process the matrix and then plug each equation into +_*? into the subroutine, much the same as with the treebeard subroutine. The same problem of not having the repetend address would, of course, produce slight variations from the accepted results made on a precision calculator. Precision calculators definitely use some sort of algorithm to handle repetends so 1 / 3 * 3 = 1 instead of .999...
Pete