Average Error: 0.3 → 0.3
Time: 19.8s
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 r13162237 = x;
        double r13162238 = 27.0;
        double r13162239 = r13162237 * r13162238;
        double r13162240 = y;
        double r13162241 = r13162239 * r13162240;
        return r13162241;
}

double f(double x, double y) {
        double r13162242 = y;
        double r13162243 = 27.0;
        double r13162244 = r13162242 * r13162243;
        double r13162245 = x;
        double r13162246 = r13162244 * r13162245;
        return r13162246;
}

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