Average Error: 0.3 → 0.3
Time: 21.2s
Precision: 64
\[\left(x \cdot 27\right) \cdot y\]
\[\left(y \cdot 27\right) \cdot x\]
\left(x \cdot 27\right) \cdot y
\left(y \cdot 27\right) \cdot x
double f(double x, double y) {
        double r10534285 = x;
        double r10534286 = 27.0;
        double r10534287 = r10534285 * r10534286;
        double r10534288 = y;
        double r10534289 = r10534287 * r10534288;
        return r10534289;
}

double f(double x, double y) {
        double r10534290 = y;
        double r10534291 = 27.0;
        double r10534292 = r10534290 * r10534291;
        double r10534293 = x;
        double r10534294 = r10534292 * r10534293;
        return r10534294;
}

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\right) \cdot y\]
  2. Using strategy rm
  3. Applied associate-*l*0.3

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

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

Reproduce

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