Integral in solve on HP 42S?
02-26-2019, 07:41 AM
Post: #11
 Werner Senior Member Posts: 863 Joined: Dec 2013
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

41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE
 « Next Oldest | Next Newest »

 Messages In This Thread Integral in solve on HP 42S? - lrdheat - 02-24-2019, 06:29 PM RE: Integral in solve on HP 42S? - Thomas Klemm - 02-24-2019, 08:13 PM RE: Integral in solve on HP 42S? - Gerald H - 02-25-2019, 05:17 AM 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? - Thomas Klemm - 02-25-2019, 07:47 AM RE: Integral in solve on HP 42S? - Thomas Klemm - 02-25-2019, 08:09 AM RE: Integral in solve on HP 42S? - Werner - 02-26-2019 07:41 AM RE: Integral in solve on HP 42S? - ijabbott - 02-26-2019, 08:39 AM RE: Integral in solve on HP 42S? - lrdheat - 02-26-2019, 03:15 AM RE: Integral in solve on HP 42S? - Thomas Okken - 02-26-2019, 03:30 AM RE: Integral in solve on HP 42S? - Thomas Klemm - 02-26-2019, 05:30 AM RE: Integral in solve on HP 42S? - Gerald H - 02-26-2019, 09:29 AM

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