Average Error: 0.3 → 0.3
Time: 1.4m
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 r11174264 = x;
        double r11174265 = 27.0;
        double r11174266 = r11174264 * r11174265;
        double r11174267 = y;
        double r11174268 = r11174266 * r11174267;
        return r11174268;
}

double f(double x, double y) {
        double r11174269 = y;
        double r11174270 = 27.0;
        double r11174271 = r11174269 * r11174270;
        double r11174272 = x;
        double r11174273 = r11174271 * r11174272;
        return r11174273;
}

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 2019200 
(FPCore (x y)
  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, F"
  (* (* x 27.0) y))