Post Reply 
Integral in solve on HP 42S?
02-26-2019, 07:41 AM
Post: #11
RE: Integral in solve on HP 42S?
(02-25-2019 08:09 AM)Thomas Klemm Wrote:  So we end up with:
Code:
00 { 9-Byte Prgm }
01▸LBL "f"
02 RCL "x"
03 X↑2
04 END

Code:
00 { 19-Byte Prgm }
01▸LBL "∫f"
02 MVAR "ULIM"
03 INTEG "x"
04 10
05 -
06 END

Example:

0
STO "LLIM"
1e-10
STO "ACC"
PGMINT "f"

Then use the SOLVER with the program ∫f and the variable ULIM to get

3.10723250595

Cheers
Thomas

It would make sense to then add ACC and LLIM as MVARS to "∫f":

Code:
00 { 30-Byte Prgm }
01▸LBL "∫f"
02 MVAR "ACC"
03 MVAR "LLIM"
04 MVAR "ULIM"
05 INTEG "x"
06 10
07 -
08 END

.. makes it a lot easier to enter the numbers, and to play with different ACC's.

Cheers, Werner
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Integral in solve on HP 42S? - lrdheat - 02-24-2019, 06:29 PM
RE: Integral in solve on HP 42S? - Werner - 02-25-2019, 07:43 AM
RE: Integral in solve on HP 42S? - lrdheat - 02-24-2019, 08:15 PM
RE: Integral in solve on HP 42S? - Werner - 02-26-2019 07:41 AM
RE: Integral in solve on HP 42S? - lrdheat - 02-26-2019, 03:15 AM



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