Post Reply 
[41,42] Perfect functions
05-13-2020, 11:02 PM (This post was last modified: 05-13-2020 11:10 PM by Sylvain Cote.)
Post: #5
RE: [41,42] Perfect functions
(05-13-2020 04:32 PM)Werner Wrote:  While short and concise, it is not a perfect function, Bob!
I do not know if you want to keep P2 in the stack or not, so I assume not

(05-13-2020 10:31 PM)rprosperi Wrote:  No simple way I can see to fix that.
Not that hard either. Wink

Code:
STK :  L  X  Y  Z  T
IN  :  l P1 P2  z  t
OUT : P1  R  t  t  t

Formula: R = (P1 / P2) × 100%

Code:
01 LBL "%T"
02 STO Z 
03 1/X
04 %
05 1/X
06 *
07 RUP
08 STO Y
09 X<> Z
10 X<> L
11 END
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[41,42] Perfect functions - Werner - 05-13-2020, 01:07 PM
RE: [41,42] Perfect functions - rprosperi - 05-13-2020, 03:32 PM
RE: [41,42] Perfect functions - Werner - 05-13-2020, 04:32 PM
RE: [41,42] Perfect functions - rprosperi - 05-13-2020, 10:31 PM
RE: [41,42] Perfect functions - Sylvain Cote - 05-13-2020 11:02 PM
RE: [41,42] Perfect functions - rprosperi - 05-14-2020, 12:36 PM
RE: [41,42] Perfect functions - rprosperi - 05-13-2020, 11:49 PM
RE: [41,42] Perfect functions - Werner - 05-14-2020, 06:20 AM



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