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.