i have this equation and im having trouble converting it into java code. The main problem is the "^" operator. I'm not sure how to take a power of an expression.
Here is the equation:
Very quick clarification, its log(5) +1 in the beginning.
Hope someone can help.
Here is the first part of the equation i wrote:
double equationPart1 = (((-0.5*Math.log(5)) +1)/2);
double equationPart2 = 0;//the last part
double equationPart3 = ((level * Math.log(5)) - (0.5 * Math.log(5)) + equationPart2);