> Using pow function in C?

Using pow function in C?

Posted at: 2014-12-18 
payment= (i*P)/(1-(pow((1+i),n));

Hello!

I have to write a program using the formula:

payment= (i*P)/(1-(1+i)^n).

i= monthly interest rate

P= principal or amount borrowed

n= number of payments

I was briefly taught that pow involves raising a number to a power with a simple example. However, now I am not so certain how to write the formula in C.

I thought: payment= (i*P)/(1(pow(1+i,-n))

Please explain the correct method of writing this formula in C.

Thank you all so much!! (: