posted 13 years ago

This doesn't look like a mathematical expression that I can parse, but I think you have a compounded interest in mind:

1 - (1 + i)^(-n)

If so, the corresponding Java code would be:

For more information, see the javadocs for the pow() method of the Math class

**I need to perform the following formula 1-(1+i)(power)-n**

This doesn't look like a mathematical expression that I can parse, but I think you have a compounded interest in mind:

1 - (1 + i)^(-n)

If so, the corresponding Java code would be:

For more information, see the javadocs for the pow() method of the Math class