HP Forums
Help in programming integration with HP-32SII - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: Help in programming integration with HP-32SII (/thread-20042.html)



Help in programming integration with HP-32SII - Namir - 06-01-2023 01:04 PM

Issue solved!

Namir


RE: Help in programming integration with HP-32SII - grbrum - 06-01-2023 09:25 PM

Share rhe problem and solution. We can all learn. Thanks


RE: Help in programming integration with HP-32SII - Namir - 06-02-2023 01:49 AM

To integrate say f(x)=1/x between A and B (stored in registers A and B), use the following code

Code:

LBL A
RCL A
RCL B
FN= B
<integral symbol> FN d X
RTN
LBL B
INV(X)
RTN

LBL B has the EQUATION INV(X) (entered using the EQN feature in program mode). The step FN= B (you press the FN= and then press RCL B) tells the machine that the function to be integrated is in LBL B. The step <integral symbol> FN d X (you press the integral symbol and then RCL X) involves the integration using variable X which also appears in the equation INV(X) located after LBL B. The limits of the integration are in the stack, supplied by registers A and B (for the lower and upper integration limits).


Namir