Programming Exercise (HP-15C, 15C LE - and others)
|
04-06-2014, 03:37 AM
(This post was last modified: 04-06-2014 03:59 AM by Gerson W. Barbosa.)
Post: #97
|
|||
|
|||
RE: Programming Exercise (HP-15C, 15C LE - and others)
(04-05-2014 05:02 PM)Thomas Klemm Wrote:Quote:I took your HP-11C program that sums an alternating series ... Looks like my HP-11C is a bit slower: 18.7 seconds. (04-05-2014 05:02 PM)Thomas Klemm Wrote: Now beat that with brute force. What about another non brute force program? Code:
4 10 GSB A --> 0.6931471805 ( 13.4 s ) 5 8 GSB A --> 0.6931471806 ( 11 s ) 7 6 GSB A --> 0.6931471807 ( 8.5 s ) The first parameter is the number of terms in the continued fraction, minus one. The second parameter, always even, is the number of computed terms in the series. I have assumed the continued fraction terms follow a pattern, but this has yet to be checked. Cheers, Gerson. Edited to correct line 21 (CLx, not 0). |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 9 Guest(s)