Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Code for APR Calculation using Newton Rapson Method

 
Shailesh Kulkarni
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyody,

I want to write Java programme by using formula

p=(C+E)r(1+r)N/(1+r)N-1

and using Newton rapson method (a(1+a)N/(1+a)N-1)- (p/c)=0
where N is raise to value.

C=Loan Amount
E=Extra Cost
R=Interest Rate
N=Number of months

This calculator first calculates the monthly payment using C+E and the original interest rate r = R/1200:

The APR (a = A/1200) is then calculated iteratively by solving the following equation using the Newton-Raphson method:

Is there any libriry in java for Newton rapson method. Or any help is same kind of work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic