Logarithmic and exponential equations

Hi
How can we write logarithmic and exponential equations in setAttribute?
For logarithmic one, I have an equation like this:316,2*log(x) + 622,73
For exponential one, I have an equation like this:405*x^3 + 200*x^2
For logaritmic I've tried these but they don't work. For exponentials I don't know how? :)
FXUnit.setAttribute(FXUnit.Gain, 316.2*log(value) + 622.73);
FXUnit.setAttribute(FXUnit.Gain, 316.2*ln(value) + 622.73);

The Math object has all calculus methods:
Math.log, Math.pow, etc.

@ChristophHart Thank you so much!!