Average Error: 0.3 → 0.3
Time: 46.5s
Precision: 64
\[\left(x \cdot 27.0\right) \cdot y\]
\[\left(y \cdot 27.0\right) \cdot x\]
\left(x \cdot 27.0\right) \cdot y
\left(y \cdot 27.0\right) \cdot x
double f(double x, double y) {
        double r9231309 = x;
        double r9231310 = 27.0;
        double r9231311 = r9231309 * r9231310;
        double r9231312 = y;
        double r9231313 = r9231311 * r9231312;
        return r9231313;
}

double f(double x, double y) {
        double r9231314 = y;
        double r9231315 = 27.0;
        double r9231316 = r9231314 * r9231315;
        double r9231317 = x;
        double r9231318 = r9231316 * r9231317;
        return r9231318;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.3

    \[\left(x \cdot 27.0\right) \cdot y\]
  2. Using strategy rm
  3. Applied associate-*l*0.3

    \[\leadsto \color{blue}{x \cdot \left(27.0 \cdot y\right)}\]
  4. Final simplification0.3

    \[\leadsto \left(y \cdot 27.0\right) \cdot x\]

Reproduce

herbie shell --seed 2019165 
(FPCore (x y)
  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, F"
  (* (* x 27.0) y))