Programming Exercise (HP-15C, 15C LE - and others)
|
04-05-2014, 05:02 PM
(This post was last modified: 04-05-2014 05:08 PM by Thomas Klemm.)
Post: #95
|
|||
|
|||
RE: Programming Exercise (HP-15C, 15C LE - and others)
Quote:I took your HP-11C program that sums an alternating series ... Let's go back to Valentin's program. It uses Euler's transform to improve convergence. While Valentin's program handles the general case we can do the same for that specific series. This leads to the following program for the HP-11C which is shorter, faster and more accurate: Code: 001 - 42,21,11 LBL A Example: 12 ENTER 10 GSB A The result 0.6931471806 is exact to all 10 places and is equal to \(log(2)\) as it should be. It takes about 17 seconds using Nonpareil which will be about the same as with the real calculator. Now beat that with brute force. Cheers Thomas For those interested here's a Python program: Code: M = 12 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)