Post Reply 
(11C) TVM for HP-11C
12-04-2020, 08:01 PM
Post: #10
RE: (11C) TVM for HP-11C
(12-03-2020 08:53 PM)Albert Chan Wrote:  Iterations were setup with Newton's method.
But, denominator is not quite f'(i), resulting in better correction.

More important reason for modified denominator is safety.
Note: below proofs required Bernoulli inequality, i>-1, n ≤ 0, or n ≥ 1: \(\quad(1+i)^n ≥ 1 + n\,i\)

Quote:Case FV=0: a*i/(1-k) = 1       → f(i) = a*i - (1-k) = 0       → f'(i) = a - k*n/(1+i)
If we use f'(i) for Newton's denominator, and f'(i) ≤ 0, it is likely it would converge to trivial solution, i=0

Replacing with modified slope, (1-k)/i - k*n/(1+i), we remove this problem.

Proof:
Let K = 1/k = (1+i)^n ≥ 1 + n*i       → (K-1)/i ≥ n

Modified slope = \(\large {1-k \over i} - {k\,n \over 1+i}
= k \left({K-1 \over i} - {n \over 1+i}\right)
≥ k \left(n - {n \over 1+i}\right) = {k\,n\,i \over i+1} \)

If i > 0, n ≥ 1, then modified slope will be positive.

Quote:Case PV=0: a*i/(K-1) = 1       → f(i) = a*i - (K-1) = 0       → f'(i) = a - K*n/(1+i)

Same issue as above. But, this time we wanted negative "slope".
Replacing with modified slope, (K-1)/i - K*n/(1+i), we remove this problem.

Proof:

Modified slope = \(\large{(K-1)(1+i)\;-\;K\,n\,i \over i\,(1+i)}
= {K\over i\,(1+i)} \normalsize (1+(1-n)\,i - (1+i)^{1-n} )\)

Applying Bernoulli inequality, last term is non-positive.

If i > 0, n ≥ 2, then modified slope will be negative.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(11C) TVM for HP-11C - Gamo - 05-09-2019, 01:15 AM
RE: (11C) TVM for HP-11C - Gamo - 12-03-2019, 10:12 AM
RE: (11C) TVM for HP-11C - Gamo - 02-13-2020, 06:14 AM
RE: (11C) TVM for HP-11C - bshoring - 12-02-2020, 09:02 PM
RE: (11C) TVM for HP-11C - Gamo - 12-03-2020, 08:23 AM
RE: (11C) TVM for HP-11C - Dave Britten - 12-03-2020, 01:48 PM
RE: (11C) TVM for HP-11C - bshoring - 12-03-2020, 05:53 PM
RE: (11C) TVM for HP-11C - Dave Britten - 12-03-2020, 06:08 PM
RE: (11C) TVM for HP-11C - Albert Chan - 12-03-2020, 08:53 PM
RE: (11C) TVM for HP-11C - Albert Chan - 12-04-2020 08:01 PM
RE: (11C) TVM for HP-11C - Albert Chan - 12-05-2020, 01:05 AM
RE: (11C) TVM for HP-11C - Albert Chan - 12-05-2020, 03:46 AM
RE: (11C) TVM for HP-11C - Albert Chan - 05-10-2022, 09:35 PM
RE: (11C) TVM for HP-11C - Albert Chan - 05-11-2022, 01:07 PM
RE: (11C) TVM for HP-11C - Albert Chan - 12-06-2020, 02:32 PM
RE: (11C) TVM for HP-11C - Albert Chan - 12-06-2020, 04:41 PM
RE: (11C) TVM for HP-11C - Albert Chan - 12-07-2020, 06:55 PM
RE: (11C) TVM for HP-11C - Albert Chan - 12-08-2020, 03:05 PM
RE: (11C) TVM for HP-11C - Albert Chan - 05-14-2022, 12:26 PM



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