Using FROOT recursively on the HP-71?
|
02-05-2017, 08:48 AM
(This post was last modified: 02-05-2017 08:55 AM by Ángel Martin.)
Post: #8
|
|||
|
|||
RE: Using FROOT recursively on the HP-71?
Progress made at last - ignore the previous fumbling if you must, here's the real thing:
The key is how the functions are defined, whereby the first function forces repeated root searching of the second until both functions are satisfied. This needs to be translated to the 41 register-based memory scheme playing carefully with the definitions. Let's use the same example from Valentin's article: f(x,y) = x^2 + y^2 - 5 g(x,y) = x^2 - y^2 - 3 We'll use g(x,y) as the "slave" equation, and f(x,y) the "master" function - meaning that for each guess Xo we'll FIRST get the root Yo for g(Xo, y), and use that root as the companion guess "Yo" (never mind my colorful nomenclature). This we'll repeat until the pair (Xo, Yo) is a root for f as well as for g. How to translate this to a FOCAL environment? Here we go...
The code is shown below. The nested function LBL "*FG" is the secret sauce of the recipe: Code: 01 LBL "FRT2" LBL "FF" That's it, next step is the refining for a general-purpose case using routine names in ALPHA instead of hard-coded strings for LBL FF and LBL GG. Will post a proper article when it's ready to go - thanks again and sorry about the fumbling digressions ;-) Best, ÁM "To live or die by your own sword one must first learn to wield it aptly." |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Using FROOT recursively on the HP-71? - Ángel Martin - 02-03-2017, 02:07 PM
RE: Using FROOT recursively on the HP-71? - Valentin Albillo - 02-03-2017, 04:16 PM
RE: Using FROOT recursively on the HP-71? - Ángel Martin - 02-03-2017, 04:56 PM
RE: Using FROOT recursively on the HP-71? - Ángel Martin - 02-04-2017, 01:16 PM
RE: Using FROOT recursively on the HP-71? - Sylvain Cote - 02-04-2017, 01:35 PM
RE: Using FROOT recursively on the HP-71? - Valentin Albillo - 02-04-2017, 10:01 PM
RE: Using FROOT recursively on the HP-71? - Ángel Martin - 02-05-2017, 07:42 AM
RE: Using FROOT recursively on the HP-71? - Ángel Martin - 02-05-2017 08:48 AM
|
User(s) browsing this thread: 1 Guest(s)