Post Reply 
HP42s first major program (Double Integral) Best way to approach?
05-28-2020, 06:42 PM
Post: #31
RE: HP42s first major program (Double Integral) Best way to approach?
(05-28-2020 05:30 PM)Werner Wrote:  The 4x was there as it is then executed only once, after the integral was calculated.
And there is a very easy way of adapting the program to diameters: just add the lines
Code:
2
/
right after LBL 01 and right before STO “ULIM”

Or, even simpler: just replace the 4 x by 2 /
(A volume with all parameters doubled is 8 times as large ;-)
Cheers, Werner

I went the 2 / route you mentioned but now I am going to change that based on the halving four. Less lines of code. :-)

PGMINT readies the integration because it is in a running program and then INTEG "X" starts the integration.

Lines 19 - 34 builds the equation to be solved in the X register when INTEG "X" is called. Correct?

I am going all in on the 42s so I hope I won't always be asking obvious questions. RPL programming is linear so that is how I think.

HP48GX, HP42s and DM42.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP42s first major program (Double Integral) Best way to approach? - DM48 - 05-28-2020 06:42 PM



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