Post Reply 
WP 34S mini-challenge
01-21-2014, 04:07 PM (This post was last modified: 01-21-2014 04:53 PM by Didier Lachieze.)
Post: #28
RE: WP 34S mini-challenge
(01-21-2014 03:44 PM)Gerson W. Barbosa Wrote:  If we are pleased with integer arguments only, then even an HP-42S is almost possible:

Code:
00 {14-Byte Prgm}
01 LBL "GS"
02 X^2
03 RCL+ ST L
04 ??                  ;  these are not the exclusive WP 34 instructions
05 ??                  ;  I've used, but would be kind of a spoiler to the
06 ??                  ;  original solution in case they were disclosed
07 END

100000 XEQ GS --> 5000050000

but

50000 XEQ GS --> 1250024999 (too bad this error of 1 unit due to rounding error)

Cheers,

Gerson.

Well, here is a solution working on both the 42S and WP 34S, not limited to integers and where I don't see the rounding error highlighted above:
Code:
00 {15-Byte Prgm}
01 LBL "GS"
02 X^2
03 RCL+ ST L
04 1/X
05 RCL+ ST X
06 1/X
07 END
100000 XEQ GS --> 5.000.050.000
50000 XEQ GS --> 1.250.025.000
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
WP 34S mini-challenge - Gerson W. Barbosa - 01-21-2014, 02:02 AM
RE: WP 34S mini-challenge - Paul Dale - 01-21-2014, 07:29 AM
RE: WP 34S mini-challenge - walter b - 01-21-2014, 07:59 AM
RE: WP 34S mini-challenge - walter b - 01-21-2014, 08:26 AM
RE: WP 34S mini-challenge - Paul Dale - 01-21-2014, 11:34 AM
RE: WP 34S mini-challenge - walter b - 01-21-2014, 12:20 PM
RE: WP 34S mini-challenge - Paul Dale - 01-21-2014, 11:51 AM
RE: WP 34S mini-challenge - walter b - 01-21-2014, 12:24 PM
RE: WP 34S mini-challenge - walter b - 01-21-2014, 11:08 AM
RE: WP 34S mini-challenge - Paul Dale - 01-21-2014, 08:24 AM
RE: WP 34S mini-challenge - Paul Dale - 01-21-2014, 11:29 AM
RE: WP 34S mini-challenge - Didier Lachieze - 01-21-2014 04:07 PM
RE: WP 34S mini-challenge - nsg - 01-21-2014, 10:46 PM
RE: WP 34S mini-challenge - Dieter - 01-22-2014, 01:12 PM
RE: WP 34S mini-challenge - Paul Dale - 01-21-2014, 11:55 AM
RE: WP 34S mini-challenge - walter b - 01-21-2014, 12:29 PM
RE: WP 34S mini-challenge - walter b - 01-21-2014, 01:20 PM
RE: WP 34S mini-challenge - Paul Dale - 01-21-2014, 11:48 AM
RE: WP 34S mini-challenge - Dieter - 01-21-2014, 08:43 PM
RE: WP 34S mini-challenge - Paul Dale - 01-21-2014, 10:13 PM
RE: WP 34S mini-challenge - walter b - 01-22-2014, 05:15 AM
RE: WP 34S mini-challenge - Thomas Klemm - 01-22-2014, 05:47 AM
RE: WP 34S mini-challenge - walter b - 01-22-2014, 07:04 AM
RE: WP 34S mini-challenge - walter b - 01-22-2014, 08:16 AM
RE: WP 34S mini-challenge - Thomas Klemm - 01-22-2014, 06:02 AM
RE: WP 34S mini-challenge - Dieter - 01-22-2014, 01:20 PM
RE: WP 34S mini-challenge - Thomas Klemm - 01-22-2014, 06:35 PM
RE: WP 34S mini-challenge - Dieter - 01-22-2014, 08:27 PM



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