Post Reply 
16 Point Gaussian Quadrature for the HP-41C/CV/CX (updated)
11-15-2023, 10:20 PM (This post was last modified: 11-15-2023 10:43 PM by Namir.)
Post: #26
RE: 16 Point Gaussian Quadrature for the HP-41C/CV/CX (updated)
(11-15-2023 03:14 AM)Valentin Albillo Wrote:  .
In short: you're assuming that flag 01 isn't set when you first execute your program, but that's an unsupported assumption and should it be already set, your program will never store the coefficients and thus will fail. A program should never rely on unsupported assumptions, but in this case the solution is to simply clear flag 01 before calling subroutine 00, end of story. Smile

Regards.
V.

Clearing flag 01 before the XEQ 00 will make using that flag meaningless. Perhaps adding a CF 01 and RTN after the very first label will do the job!

Code:
LBL "A-B"
CF 01
RTN
LBL A

And ask the use to first do [XEQ][ALPHA]A-B[ALPHA].

I went back and just updated the examples' intructions, asking the user to clear flag 1 if this is the first time he is running the program.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 16 Point Gaussian Quadrature for the HP-41C/CV/CX (updated) - Namir - 11-15-2023 10:20 PM



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