Reputation: 63
I got following Math problem.
var a = Math.pow(b, c);
I got a
and c
. How can I get b
? My math skilled withered over time.
Upvotes: 1
Views: 286
Reputation: 151
var b = Math.pow(a, 1/c));
This is assuming you do not need to handle negatives.
Upvotes: 3