Looking for TVM contributions
|
06-18-2024, 09:22 AM
Post: #61
|
|||
|
|||
RE: Looking for TVM contributions
(06-18-2024 03:27 AM)robve Wrote: Let me illustrate with the "time reversed" TVM problem, which is essentially the same. The forward npmt() is best for this TVM example (the backward npmt() line is fatter): I think both time direction are equally good here. 1 ULP difference, may even be caused by scaling by 100 for percentage! If I have to pick one, I would go for r = expm1(log1p(i)*n) to be positive. (== i*n > 0) We can map positive to negative without too much error, but not the other way. lua> i, n = .1, 100 lua> r1, r2 = EFF(i,n), EFF(i,-n) lua> r1, r2 13779.612339822266 -0.9999274342840985 lua> -r2/(1+r2), -r1/(1+r1) 13779.612339813315 -0.9999274342840985 But, there are many things going on ... this is only 1 factor out of many. See solve for n example, https://www.hpmuseum.org/forum/thread-21...#pid187533 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 20 Guest(s)