(Updated) Edited port of HP-67 Gaussian Quadrature
|
11-09-2023, 02:57 PM
(This post was last modified: 11-10-2023 12:00 PM by Namir.)
Post: #1
|
|||
|
|||
(Updated) Edited port of HP-67 Gaussian Quadrature
This is an edited program for the HP-41C program port from the HP-67 Gaussian-Quadrature program in the HP-67 Math Pac. The original HP-41C port was done by Tony Duell (found here). I further edited the program and removed the need for the Card Reader ROM and the special HP-67 emulation commands like 7P<>S, 7PRTX, and 7ISZ.
You can download the .raw file by clicking here. To use the program: 1) Press [B] to perform a regular integration between A and B. The program prompts you for the values of A and B. Enter these values and press [R/S] to calculate the integral. 2) Press [C] to perform a special integration between A and infinity. The program prompts you for the value of A. Enter the value and press [R/S] to calculate the integral. Notes: 1) Label E is where you enter the statements to evaluate the integrated function. 2) You need not press the button [A] to initialize the quadrature nodes and weights. The code after labels B and C invokes subroutine A to perform this initialization for you. Here is the updated lisiting: Code: 01 LBL "GQAD67" Example 1 ========= To calculate the integral of 1/x from 1 to 2 (which is equal to ln(2)): 1. In program mode insert the command 1/x after LBL E and make sure it is followed by RTN. 2. In run mode (user mode on) key in 1, press [ENTER], and key in 2. 3. The Press the [B] key. 4. The program displays 0.69315 as the value of the integral. Example 2 ======== To calculate the integral of exp(-x)*x^0.8 from 0 to inifinity (which is equal to gamma(1.8)): 1. In program mode insert the commands CHS, EXP, LASTX, CHS, 0.8, Y^X and, * after LBL E and make sure it is followed by RTN. 2. In run mode (user mode on) key in 0. 3. The Press the [C] key. 4. The program displays 0.92410 as the value of the integral. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)