raise value1 to power of value2
hi
I was hoping someone would have a better understanding of this.
I have an open source class Real written in java redefining integer implementation of 64-bit precision floating points that perform this task well, but how to do this without the Real library and without losing any data?
for example
advance = 91500
intrate = 0.0095
NoOfInst = 300
using this sequesnce : advance*rate/(1-(1+rate)^(-Noofinst))
if i had to use java data types i thought of using double for most of the values, but what happens when i have to raise (1-(1+rate) to the power of (-Noofinst)
do i use:
double x = Math.pow(((1-(1+rate)), ((-Noofinst)));
this returns infinity which is obviously wrong (correct me if i'm wrong)
does enyone know how to raise value1 to power of value2?

