Average Error: 0.3 → 0.2
Time: 17.1s
Precision: 64
${x}^{2} \cdot \log x$
${x}^{\left(\frac{2}{2}\right)} \cdot \left({x}^{\left(\frac{2}{2}\right)} \cdot \log x\right)$
{x}^{2} \cdot \log x
{x}^{\left(\frac{2}{2}\right)} \cdot \left({x}^{\left(\frac{2}{2}\right)} \cdot \log x\right)
double f(double x) {
double r670250 = x;
double r670251 = 2.0;
double r670252 = pow(r670250, r670251);
double r670253 = log(r670250);
double r670254 = r670252 * r670253;
return r670254;
}


double f(double x) {
double r670255 = x;
double r670256 = 2.0;
double r670257 = 2.0;
double r670258 = r670256 / r670257;
double r670259 = pow(r670255, r670258);
double r670260 = log(r670255);
double r670261 = r670259 * r670260;
double r670262 = r670259 * r670261;
return r670262;
}



# Try it out

Results

 In Out
Enter valid numbers for all inputs

# Derivation

1. Initial program 0.3

${x}^{2} \cdot \log x$
2. Using strategy rm
3. Applied sqr-pow0.3

$\leadsto \color{blue}{\left({x}^{\left(\frac{2}{2}\right)} \cdot {x}^{\left(\frac{2}{2}\right)}\right)} \cdot \log x$
4. Applied associate-*l*0.2

$\leadsto \color{blue}{{x}^{\left(\frac{2}{2}\right)} \cdot \left({x}^{\left(\frac{2}{2}\right)} \cdot \log x\right)}$
5. Final simplification0.2

$\leadsto {x}^{\left(\frac{2}{2}\right)} \cdot \left({x}^{\left(\frac{2}{2}\right)} \cdot \log x\right)$

# Reproduce

herbie shell --seed 1
(FPCore (x)
:name "x^2 log(x)"
:precision binary64
(* (pow x 2) (log x)))