Peter Shipway

Ranch Hand

Posts: 71

Tim West

Ranch Hand

Posts: 539

John Smith

Ranch Hand

Posts: 2937

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