The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Any RPN, No regs, line given 2 points
12-24-2017, 06:55 AM (This post was last modified: 12-26-2017 04:15 PM by Bill Duncan.)
Post: #1
Any RPN, No regs, line given 2 points
Thought this might be useful for others. Use it either by itself or as a subroutine. I often use it with the HP-29c, but should work with any. Given 2 points it returns the slope in X, intercept in Y which is convenient for keying in another X for a linear estimate (just enter X, * and +).

Code:

LBL 0
x<>y
RDN
-
LASTx
x<>y
RDN
RDN
x<>y
-
LASTx
RDN
x<>y
/
ENTER
RDN
*
-
x<>y
RTN
GTO 0

As a trivial example, moving data. Say, I'd copied 100gb of data an hour ago, 150gb are currently copied; how long will it take to copy all 1000gb?

-1 enter 100 enter 0 enter 150 gsb 0
1000 * +
Answer, 17 more hours..
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Any RPN, No regs, line given 2 points - Bill Duncan - 12-24-2017 06:55 AM



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