Post Reply 
Bonds
08-21-2017, 09:48 AM (This post was last modified: 08-21-2017 03:16 PM by salvomic.)
Post: #3
RE: Bonds
dear Randal,
thank you for your report.
You're right, there are some (and not good) approximations in my program. I made it in 2015 and it seemed to work well then, but now I can see your observed differences.
I don't know if the problem stay in the new firmware or in my formulas. For example the use of solve() function like this code:
Code:
C:= coupon; A:= ann; Y:= years; P:= price;
  // yield := Solve.SOLVE((C/A)*( (1-1/(1+(X/A))^(A*Y)) / (X/A) ) + 100/(1+(X/A))^(A*Y) = P, X);
  yield := FNROOT((C/A)*( (1-1/(1+(X/A))^(A*Y)) / (X/A) ) + 100/(1+(X/A))^(A*Y) = P, X);

I hope someone could be so kind to help us to find the bug.

73, regards
salvo it9clu

EDIT (PS): maybe sometime HP could implement such function inside the standard APPs in the Prime. I'm looking forward :-) ;-)

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Bonds - salvomic - 06-01-2015, 09:20 AM
RE: Bonds - Randall - 08-20-2017, 09:40 PM
RE: Bonds - salvomic - 08-21-2017 09:48 AM



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