I have tried to represent this formula in Java but the values are not correct maybe I have some issue transforming the formula to code.
private double getFactor(int y) {
double factor = 10 * Math.pow(3, logOfBase(2, 10 + Math.pow(y, 3)));
return factor;
}
public double logOfBase(int base, double num) {
return Math.log(num) / Math.log(base);
}