Re: commons-math usage to calculate APR?

2008-08-17 Thread Rory Winston
8 3:45 PM To: Commons Users List Subject: Re: commons-math usage to calculate APR? David Hoffer a écrit : My usage is for USA only at this point. I have inputs of loanAmount, monthlyInterestRate, numberMonths, loanFees; so this would be for fixed monthly payments. You

RE: commons-math usage to calculate APR?

2008-08-16 Thread David Hoffer
-Original Message- From: Luc Maisonobe [mailto:[EMAIL PROTECTED] Sent: Saturday, August 16, 2008 5:32 PM To: Commons Users List Subject: Re: commons-math usage to calculate APR? David Hoffer a écrit : > Well I am getting close with your suggestions. > > It seems to be calculating valu

Re: commons-math usage to calculate APR?

2008-08-16 Thread Luc Maisonobe
ro, it means the initial equation does not compute what you want. Luc > > -Dave > > -Original Message- > From: Luc Maisonobe [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 16, 2008 4:14 PM > To: Commons Users List > Subject: Re: commons-math usage to calculate APR

RE: commons-math usage to calculate APR?

2008-08-16 Thread David Hoffer
goes up, it is calculating about 4.7% and then gets higher as loanExpenses go up (but it stays low). -Dave -Original Message- From: Luc Maisonobe [mailto:[EMAIL PROTECTED] Sent: Saturday, August 16, 2008 4:14 PM To: Commons Users List Subject: Re: commons-math usage to calculate APR? David

Re: commons-math usage to calculate APR?

2008-08-16 Thread Luc Maisonobe
> plus I'm not certain of the math above. > > -Dave > > -Original Message- > From: Bear Giles [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 16, 2008 3:40 PM > To: Commons Users List > Subject: Re: commons-math usage to calculate APR? > > There are

RE: commons-math usage to calculate APR?

2008-08-16 Thread David Hoffer
: Saturday, August 16, 2008 3:45 PM To: Commons Users List Subject: Re: commons-math usage to calculate APR? David Hoffer a écrit : > My usage is for USA only at this point. > > I have inputs of loanAmount, monthlyInterestRate, numberMonths, loanFees; so > this would be for fixed mo

RE: commons-math usage to calculate APR?

2008-08-16 Thread David Hoffer
August 16, 2008 3:40 PM To: Commons Users List Subject: Re: commons-math usage to calculate APR? There are closed-form expressions for that, although I don't have them off the top of my head. Something like m = P / (1 - i)^n or maybe m = P / ((1 + i)^n - 1) where m is monthly paymen

Re: commons-math usage to calculate APR?

2008-08-16 Thread Luc Maisonobe
2:45 PM > To: Commons Users List > Subject: Re: commons-math usage to calculate APR? > > David Hoffer a écrit : >> Can anyone point me to an example of how to use commons-math to calculate >> APR (Annual Percentage Rate)? > > There are no specific finance relat

Re: commons-math usage to calculate APR?

2008-08-16 Thread Bear Giles
pecific finance methods however I think the APR formula is a non-linear equation that I was hoping commons-math could help solve. -Dave -Original Message- From: Luc Maisonobe [mailto:[EMAIL PROTECTED] Sent: Saturday, August 16, 2008 2:45 PM To: Commons Users List Subject: Re: common

RE: commons-math usage to calculate APR?

2008-08-16 Thread David Hoffer
hat I was hoping commons-math could help solve. -Dave -Original Message- From: Luc Maisonobe [mailto:[EMAIL PROTECTED] Sent: Saturday, August 16, 2008 2:45 PM To: Commons Users List Subject: Re: commons-math usage to calculate APR? David Hoffer a écrit : > Can anyone point me to an ex

Re: commons-math usage to calculate APR?

2008-08-16 Thread Luc Maisonobe
David Hoffer a écrit : > Can anyone point me to an example of how to use commons-math to calculate > APR (Annual Percentage Rate)? There are no specific finance related algorithm in commons-math. > > I think this is solvable using either the NewtonSolver or BisectionSolver > but I am not sure