Programming Exercise (HP-15C, 15C LE - and others)
03-21-2014, 01:52 AM
Post: #6
 Dave Britten Senior Member Posts: 2,062 Joined: Dec 2013
RE: Programming Exercise (HP-15C, 15C LE - and others)
Just for fun, here it is for the 20S, a (GASP!) algebraic model. Whenever I code for the 20S, I usually end up having to abuse its features/quirks in unusual ways, and this one is no different. It's been a couple years since I dug into it, though, so there's probably still room for improvement. This completed in just under 10.5 minutes, and yielded a result of 6.93097183E-1.

01- LBL A
02- CLRG
03- 1
04- STO 0
05- E
06- 4
07- STO 4 (Prepare the trickery)
08- LBL 0
09- x
10- RCL 0
11- +/-
12- STO 0
13- =
14- 1/x
15- STO+ 1
16- SIGMA- (Trickery)
17- x=0?
18- GTO 1
19- GTO 0
20- LBL 1
21- RCL 1
22- RTN

Basically, I'm banking on SIGMA- being faster than 1, +/-, RCL+ 4, STO 4. I haven't actually tested that hypothesis yet, mind you.
 « Next Oldest | Next Newest »

 Messages In This Thread Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-16-2014, 02:17 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 03-16-2014, 05:23 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-16-2014, 02:44 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-17-2014, 12:43 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-17-2014, 07:14 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Dave Britten - 03-21-2014 01:52 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-21-2014, 04:57 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Dave Britten - 03-21-2014, 01:04 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Shawn Gibson - 03-21-2014, 03:53 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Dave Britten - 03-21-2014, 05:07 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 03-21-2014, 06:28 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-21-2014, 07:09 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Shawn Gibson - 03-22-2014, 12:59 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-22-2014, 03:02 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 03-22-2014, 05:12 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Paul Dale - 03-22-2014, 11:50 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-22-2014, 12:47 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 03-22-2014, 02:52 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-22-2014, 05:17 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Marcus von Cube - 03-22-2014, 09:05 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - RMollov - 03-23-2014, 08:54 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Marcus von Cube - 03-23-2014, 11:26 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 03-23-2014, 08:59 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-23-2014, 01:49 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 03-25-2014, 09:11 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Werner - 03-22-2014, 09:47 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-23-2014, 12:36 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Dave Britten - 03-22-2014, 10:19 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-23-2014, 01:31 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Dave Britten - 03-25-2014, 11:27 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-25-2014, 03:50 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 03-25-2014, 09:27 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-25-2014, 11:45 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 03-26-2014, 03:59 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - churichuro - 03-25-2014, 11:46 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-26-2014, 12:00 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - churichuro - 03-26-2014, 02:22 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-26-2014, 02:42 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Dave Britten - 03-26-2014, 02:04 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - churichuro - 03-26-2014, 06:20 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-26-2014, 07:01 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - bkn42 - 03-28-2014, 03:18 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Didier Lachieze - 03-28-2014, 08:28 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-28-2014, 03:48 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 03-28-2014, 04:48 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Marcel Samek - 03-28-2014, 07:17 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-30-2014, 12:07 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Marcel Samek - 03-30-2014, 12:51 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-30-2014, 01:38 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - bkn42 - 03-30-2014, 03:12 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-30-2014, 03:51 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - bkn42 - 03-31-2014, 04:18 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - bkn42 - 03-28-2014, 10:42 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Tugdual - 03-29-2014, 12:36 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-29-2014, 02:21 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Tugdual - 03-29-2014, 12:36 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 03-29-2014, 12:02 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Tugdual - 03-29-2014, 12:32 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 03-29-2014, 05:19 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Tugdual - 03-29-2014, 05:59 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 03-29-2014, 06:23 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Tugdual - 03-29-2014, 07:10 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 03-29-2014, 07:17 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Tugdual - 03-29-2014, 08:07 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 03-29-2014, 08:51 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Tugdual - 03-29-2014, 09:19 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-29-2014, 01:29 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Steve Simpkin - 03-29-2014, 05:41 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Steve Simpkin - 04-05-2014, 05:09 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - bkn42 - 03-31-2014, 06:42 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 03-31-2014, 07:22 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - bkn42 - 03-31-2014, 07:49 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 03-31-2014, 08:01 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Dave Britten - 03-31-2014, 08:27 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - DavidM - 03-31-2014, 10:13 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 04-01-2014, 02:57 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - DavidM - 04-01-2014, 03:54 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - HP67 - 04-01-2014, 06:50 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - DavidM - 04-01-2014, 08:32 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - HP67 - 04-01-2014, 09:17 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - DavidM - 04-01-2014, 07:37 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - DGM - 04-02-2014, 04:25 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 04-02-2014, 09:07 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 04-04-2014, 02:19 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - DGM - 04-03-2014, 03:47 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - [kby] - 04-04-2014, 02:10 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 04-04-2014, 02:58 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 04-04-2014, 03:26 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 04-04-2014, 04:10 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Steve Simpkin - 04-04-2014, 04:56 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 04-04-2014, 07:43 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Steve Simpkin - 04-05-2014, 09:01 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - DavidM - 04-04-2014, 07:35 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Marcus von Cube - 04-04-2014, 11:56 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 04-05-2014, 05:02 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 04-06-2014, 03:37 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 04-06-2014, 06:24 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 04-06-2014, 11:24 AM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 04-06-2014, 07:14 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 04-15-2014, 04:41 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Thomas Klemm - 04-15-2014, 06:25 PM RE: Programming Exercise (HP-15C, 15C LE - and others) - Gerson W. Barbosa - 04-20-2014, 03:17 AM

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