(HP-67/97) RATIONAL ARITHMETIC IN FLOATING-POINT by W. Kahan
|
05-02-2015, 05:39 PM
(This post was last modified: 12-27-2023 12:55 AM by Thomas Klemm.)
Post: #1
|
|||
|
|||
(HP-67/97) RATIONAL ARITHMETIC IN FLOATING-POINT by W. Kahan
(02-04-2015 06:52 AM)Katie Wasserman Wrote: A lot of this is fluff but not all, William Kahan has some papers on this site. For example this one on rational arithmetic in floating point. He gives programs for the 67/97 and the 71b and mentions the 15C and 41C. Thanks for sharing the paper. Cheers Thomas Usage: Code: The stack holds four integers X, Y, Z, T construed as two rational numbers Y/X and T/Z , Example: \(\frac{123,456,799}{123,456}-\frac{988,297,396}{988,291}=\frac{31}{189751872}\) 1234 56799. [ENTER↑] 123456. [ENTER↑] 9882 97396. [ENTER↑] 988291. \([\)B] 1897 51872. [x<>y] 31. Program: Code: 001: 31 25 11 ; LBL A Cards for Jacques Laporte's HP-67 Emulator: Code: 0 0 0 0 0 0 0 Code: 0 0 0 0 0 0 0 |
|||
06-13-2015, 01:58 AM
Post: #2
|
|||
|
|||
RE: (HP-67/97) RATIONAL ARITHMETIC IN FLOATING-POINT by W. Kahan
Thanks for posting this. Early on I entered the program, but apparently missed one step, which threw me off. I let it sit for a long time. Tonight I went through step by step and found my error. Now it works just fine.
Regards, Bob |
|||
06-24-2016, 02:37 PM
Post: #3
|
|||
|
|||
RE: (HP-67/97) RATIONAL ARITHMETIC IN FLOATING-POINT by W. Kahan
(06-13-2015 01:58 AM)bshoring Wrote: Thanks for posting this. Early on I entered the program, but apparently missed one step, which threw me off. I let it sit for a long time. Tonight I went through step by step and found my error. Now it works just fine. Bob, if you're using RPN-67, simply paste the entire code into the listing area of an empty card. No typing or editing required. |
|||
06-24-2016, 03:19 PM
(This post was last modified: 06-24-2016 03:20 PM by Willy R. Kunz.)
Post: #4
|
|||
|
|||
RE: (HP-67/97) RATIONAL ARITHMETIC IN FLOATING-POINT by W. Kahan
(02-04-2015 06:52 AM)Katie Wasserman Wrote: A lot of this is fluff but not all, William Kahan has some papers on this site. For example this one on rational arithmetic in floating point. He gives programs for the 67/97 and the 71b and mentions the 15C and 41C. Thanks for sharing the paper. Cheers Thomas Usage: Code: The stack holds four integers X, Y, Z, T construed as two rational numbers Y/X and T/Z , Example: \(\frac{123,456,799}{123,456}-\frac{988,297,396}{988,291}=\frac{31}{189751872}\) 1234 56799. [ENTER↑] 123456. [ENTER↑] 9882 97396. [ENTER↑] 988291. \([\)B] 1897 51872. [x<>y] 31. Program: Code: LBL A Cards for Jacques Laporte's HP-67 Emulator: Code: 0 0 0 0 0 0 0 Code: 0 0 0 0 0 0 0 Users of RPN-67/97 may import the attached program card (via iTunes file sharing). RatArithmFP.rpn67.zip (Size: 1.74 KB / Downloads: 18) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)