Average Error: 0.3 → 0.3
Time: 19.7s
Precision: 64
\[\left(x \cdot 27\right) \cdot y\]
\[x \cdot \left(y \cdot 27\right)\]
\left(x \cdot 27\right) \cdot y
x \cdot \left(y \cdot 27\right)
double f(double x, double y) {
        double r281315 = x;
        double r281316 = 27.0;
        double r281317 = r281315 * r281316;
        double r281318 = y;
        double r281319 = r281317 * r281318;
        return r281319;
}

double f(double x, double y) {
        double r281320 = x;
        double r281321 = y;
        double r281322 = 27.0;
        double r281323 = r281321 * r281322;
        double r281324 = r281320 * r281323;
        return r281324;
}

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. Simplified0.3

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

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

Reproduce

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