Need help with RPL Listing for "SOLVER FOR ANY VARIABLE"
|
07-11-2019, 01:25 PM
(This post was last modified: 07-12-2019 01:38 PM by DavidM.)
Post: #10
|
|||
|
|||
RE: Need help with RPL Listing for "SOLVER FOR ANY VARIABLE"
One more RPL version...
This one is a bit more of a traditional RPL approach. Instead of replicating the exact flow of the 71B steps, it uses the stack for holding the temporary variables F0, X0, H, and D while seeking the root. This makes better use of the calculator's resources (saves 116.5 bytes and executes faster), but also makes the source much harder to read and maintain (IMHO). In many ways, this follows the usual pattern for RPL (and RPN) code: the more refined and efficient it is, the more fragile it becomes. Whereas in the previous version you could actually see the temporary variable modifications, holding the variables on the stack during execution makes it much harder to follow simply by looking at the code. If the comments are removed, it would be an arduous task to go back and make changes. Code: \<< |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)