# Powers and the math. class

Peter Shipway

Ranch Hand

Posts: 71

Tim West

Ranch Hand

Posts: 539

John Smith

Ranch Hand

Posts: 2937

posted 11 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

- 0

**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

I agree. Here's the link: http://aspose.com/file-tools |