Trapezoidal Rule for HP-67
|
09-03-2017, 08:27 AM
(This post was last modified: 09-03-2017 08:45 AM by Dieter.)
Post: #2
|
|||
|
|||
RE: Trapezoidal Rule for HP-67
(09-02-2017 07:02 PM)Matt Agajanian Wrote: Although the 67/97 Math Pac I has mag card which calculates an integral with the Trapezoidal Rule, the x,y data points need to be stated. I assume this is because the Trapezoidal method is a very simple one with quite limited accuracy for analytical functions. On the other hand it works well for purposes where discrete data points are given, e.g. in engineering. (09-02-2017 07:02 PM)Matt Agajanian Wrote: Is there a program here in the archives or elsewhere for calculating integrals with the Trapezoidal Rule for the HP-67/97 where the function subroutine can be entered in the program? Simply write your own: Code: LBL A Enter function at LBL E Here x is in the X-register and can also be recalled from R0 if required. Enter limits: a [ENTER] b [ A ] Enter number of intervals (≥2): n [ B ] (note: incorrect input (non-integer or less than 2) is automatically corrected) Calculate integral: [ C ] Registers: R0: x R1: a R2: b R3: n R4: h = (b–a)/n R5: function sum, integral Example: Integrate f(x) = 1/x from a=1 to b=2 with n=10 intervals LBL E 1/x RTN 1 [ENTER] 2 [ A ] 10 [ B ] [ C ] => 0,6938 Exact solution: ln 2 = 0,693147... If you add a PAUSE after LBL E you can see how x runs from a to b. ;-) Dieter |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Trapezoidal Rule for HP-67 - Matt Agajanian - 09-02-2017, 07:02 PM
RE: Trapezoidal Rule for HP-67 - Dieter - 09-03-2017 08:27 AM
RE: Trapezoidal Rule for HP-67 - Matt Agajanian - 09-03-2017, 05:18 PM
RE: Trapezoidal Rule for HP-67 - Dieter - 09-03-2017, 05:32 PM
RE: Trapezoidal Rule for HP-67 - Matt Agajanian - 09-03-2017, 05:44 PM
RE: Trapezoidal Rule for HP-67 - Dieter - 09-03-2017, 05:59 PM
RE: Trapezoidal Rule for HP-67 - Matt Agajanian - 09-03-2017, 06:04 PM
|
User(s) browsing this thread: 1 Guest(s)