(71B) calculate interest rate
|
01-02-2020, 05:43 PM
(This post was last modified: 01-05-2020 09:42 PM by Albert Chan.)
Post: #7
|
|||
|
|||
RE: (71B) calculate interest rate
This version extrapolate for rate, using Steffensen's method
I used HP71B quirky RES behavior on line-50, see HP71B RES bug? Code: 10 INPUT "N, FV, PV, PMT ? ";N,F,P,M To keep code short, it run until extrapolation hit by divide-by-0 (or other) error. >DEFAULT OFF ! error if overflow/underflow, divide-by-0 ... >RUN N, FV, PV, PMT ? 168, 10925.76, 0, -45 4.36103281596E-3 4.17891608926E-3 4.17538469191E-3 4.17538330384E-3 ERR L20:0/0 >RUN N, FV, PV, PMT ? 600, 1e6, 0, -250 4.93576250272E-3 5.12771388025E-3 5.12720427126E-3 5.12720426785E-3 ERR L20:0/0 Note: above code require very good guess for rate. Going for FV errors (see previous posts) is much better. Example: tried this with default guess failed. >RUN N, FV, PV, PMT ? 40, 0, 25000, -1000 4.09556313993E-2 ERR L30:LOG(neg) We need better guess (for this case, 2.1% ≤ guess ≤ 3.1%) >.025 @ RUN 50 .025 .025252440621 .025243859111 2.52438486204E-2 ERR L20:0/0 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(71B) calculate interest rate - Albert Chan - 12-20-2019, 04:14 PM
RE: (71B) calculate interest rate - Joe Horn - 12-20-2019, 08:36 PM
RE: (71B) calculate interest rate - Albert Chan - 12-20-2019, 10:10 PM
RE: (71B) calculate interest rate - J-F Garnier - 12-21-2019, 03:44 PM
RE: (71B) calculate interest rate - Albert Chan - 12-22-2019, 03:07 PM
RE: (71B) calculate interest rate - Albert Chan - 12-29-2019, 02:46 PM
RE: (71B) calculate interest rate - Albert Chan - 01-02-2020 05:43 PM
RE: (71B) calculate interest rate - Albert Chan - 01-06-2020, 09:16 PM
RE: (71B) calculate interest rate - Albert Chan - 02-13-2020, 03:41 PM
|
User(s) browsing this thread: 1 Guest(s)