Delta Percentage (Texas TI-58/59)
07-28-2016, 07:32 PM (This post was last modified: 07-28-2016 07:46 PM by Dieter.)
Post: #8
 Dieter Senior Member Posts: 2,397 Joined: Dec 2013
RE: Delta Percentage (Texas TI-58/59)
(07-26-2016 04:11 AM)Gerson W. Barbosa Wrote:  TI-66:

Code:
... 004 STO 005 00 006 = 007 / 008 RCL 009 00 ...

CLR 19.6 x<>t 19.81 D --> 1.071428571

You do not have to occupy a data register, also CLR is not required if you use brackets.
It can be done this way (keycodes for TI58/59):

Code:
000 76 LBL 001 11 D 002 53 ( 003 53 ( 004 32 x<>t 005 75 - 006 32 x<>t 007 54 ) 008 94 +/- 009 55 / 010 32 x<>t 011 65 x 012 01 1 013 00 0 014 00 0 015 54 ) 016 92 RTN

This way the Δ% operation can also be used in chain calculations.

Example:
Code:
   3  [x]                         3. 19,60 [x<>t] 19,81 [D]   1.071428571       [=]                3.214285714

As an additional benefit, the t-register on exit holds the absolute change. ;-)

Dieter
 « Next Oldest | Next Newest »

 Messages In This Thread Delta Percentage (Texas TI-58/59) - hp41cx - 07-26-2016, 12:11 AM RE: Delta Percentage (Texas TI-58/59) - Gerson W. Barbosa - 07-26-2016, 04:11 AM RE: Delta Percentage (Texas TI-58/59) - hp41cx - 07-26-2016, 09:15 AM RE: Delta Percentage (Texas TI-58/59) - rprosperi - 07-26-2016, 07:14 PM RE: Delta Percentage (Texas TI-58/59) - Gerson W. Barbosa - 07-26-2016, 09:15 PM RE: Delta Percentage (Texas TI-58/59) - Mark - 07-27-2016, 03:22 PM RE: Delta Percentage (Texas TI-58/59) - Dieter - 07-28-2016 07:32 PM RE: Delta Percentage (Texas TI-58/59) - Gerson W. Barbosa - 07-26-2016, 10:35 PM RE: Delta Percentage (Texas TI-58/59) - Gerson W. Barbosa - 07-29-2016, 11:19 PM

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