Post Reply 
[34S] Time diff. STO.00 vs. STO 00 ?
03-17-2014, 07:08 PM
Post: #31
RE: [34S] Time diff. STO.00 vs. STO 00 ?
(03-17-2014 06:14 PM)Thomas Klemm Wrote:  
(03-17-2014 05:12 PM)Sikuq Wrote:  Is that the one you use in the WP34S or is there a better one?

They are not the same: Newton vs. digit-by-digit
Code:
/* decNumberSquareRoot -- square root operator                        */

/* loop                                                               */
/*   p := min(2*p - 2, maxp)     % p = 4,6,10, . . . , maxp           */
/*   precision p                                                      */
/*   approx := .5 * (approx + f/approx)                               */
/*   exit when p = maxp                                               */
/* end loop                                                           */

Cheers
Thomas

Thomas,

Many thanks. This algorithm stuff gets huge quickly as size is at a premium on WP34S I'd suppose. I'm tempted to key-in the Egbert routines and check convergence times versus the Newton as indicated by you although I have a feeling I would be at a disadvantage using program lines versus pre-compiled c-code? Am I correct?

- Sikuq
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [34S] Time diff. STO.00 vs. STO 00 ? - Sikuq - 03-17-2014 07:08 PM



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