Post Reply 
Programming Exercise (HP-15C, 15C LE - and others)
03-23-2014, 08:59 AM
Post: #26
RE: Programming Exercise (HP-15C, 15C LE - and others)
(03-22-2014 03:02 AM)Gerson W. Barbosa Wrote:  But we can easily break the 20-second barrier on the WP 34S

Yet another idea is to combine two terms: \(\frac{1}{n}-\frac{1}{n+1}=\frac{1}{n(n+1)}\)
Code:
LBL A
0
RCL Y
DEC Z
RCL* Z
1/x
+
DSZ Y
BACK 006
END
10000
XEQ A

Code:
LBL B
INC X
*
1/x
END
9999.00102
\(\sum\) B

We don't have to deal with the alternating sign and it should be both faster and more accurate.

Cheers
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 03-23-2014 08:59 AM



User(s) browsing this thread: 1 Guest(s)