Post Reply 
HP49-50G: help for recursive
02-06-2024, 05:48 PM
Post: #13
RE: HP49-50G: help for recursive
For my narrow mind, my solution with global variable seems simpler :
1) create max by first execution of the program, and assign to it the initial value of xo.
2) when the recursive loop start again (at the very beginning of the program), as the variable max already exist, leave its value as it is, ie initial input value xo.
3) exception for special case when initial input xo is < 0.4 from the very beginning of the program (the program never executes the THEN condition, but directly and only the ELSE condition and stops.
4) At the end, before terminating the program, we delete maf

But I do feel, though it's logical, it's heavy stuff, not elegant at all.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP49-50G: help for recursive - Gil - 02-02-2024, 12:46 PM
RE: HP49-50G: help for recursive - Gil - 02-02-2024, 01:52 PM
RE: HP49-50G: help for recursive - Gil - 02-02-2024, 06:13 PM
RE: HP49-50G: help for recursive - Gil - 02-03-2024, 10:19 AM
RE: HP49-50G: help for recursive - Gil - 02-04-2024, 12:06 PM
RE: HP49-50G: help for recursive - Gil - 02-06-2024, 11:57 AM
RE: HP49-50G: help for recursive - DavidM - 02-06-2024, 01:14 PM
RE: HP49-50G: help for recursive - Gil - 02-06-2024, 01:29 PM
RE: HP49-50G: help for recursive - DavidM - 02-06-2024, 03:51 PM
RE: HP49-50G: help for recursive - Gil - 02-06-2024 05:48 PM
RE: HP49-50G: help for recursive - DavidM - 02-06-2024, 08:51 PM
RE: HP49-50G: help for recursive - Gil - 02-06-2024, 08:53 PM



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