how to calculate the nth root of 2
I needed to log this somewhere since I always waste time looking it up. To caclulate the nth root of 2, for exampe, the 12th root of 2... 2^(1/12)... use e(l(2)/n), or in this case exp(log(2)/12) = 1.05946309435929526455.
More generally x^y is calculated by e(y * ln(x)) assuming x is positive.
More generally x^y is calculated by e(y * ln(x)) assuming x is positive.

0 Comments:
Post a Comment
<< Home