Results 1 to 5 of 5
Thread: Need help with math equation
- 01-09-2010, 06:54 PM #1
Member
- Join Date
- Jan 2010
- Posts
- 2
- Rep Power
- 0
Need help with math equation
I need help with a math equation in Java - how do you write a power? I have googled it and seem to have found all incorrect information.
MonthlyPayment =
[MortgageAmount * (1 + MonthlyInterestRate)TotalMonth * MonthlyInterestRate] /[(1 + MonthlyInterestRate)TotalMonth – 1]
where TotalMonth is an exponent.
Also, if you have any good java resources, please let me know.
Thanks,
Anna
- 01-09-2010, 07:37 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
Math.pow(x, y) raises x to the power y, e.g. Math.pow(2, 5) == 32. Google for Sun's tutorial and Sun's API documentation, you'll need them; b.t.w. you can even download them and read them off-line.
kind regards,
Jos
- 01-10-2010, 04:22 PM #3
Member
- Join Date
- Jan 2010
- Posts
- 2
- Rep Power
- 0
Thank you for your help. This worked. Also, thank you for your suggestion to read the sun documents, which I will do.
- 01-10-2010, 04:25 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
-
And please allow me to welcome you to the forum! We hope to see more of you here!
Similar Threads
-
differential equation RK4
By arvindmer in forum New To JavaReplies: 3Last Post: 01-08-2009, 01:27 PM -
Quadratic Equation
By jpnym15 in forum New To JavaReplies: 4Last Post: 11-12-2008, 03:29 AM -
Help with an equation in java
By coco in forum New To JavaReplies: 1Last Post: 07-31-2007, 07:47 AM -
Help with quadratic equation in java
By paul in forum New To JavaReplies: 1Last Post: 07-25-2007, 08:23 PM -
Problem with equation in my algorithm
By romina in forum New To JavaReplies: 2Last Post: 07-20-2007, 07:53 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks