Average Error: 0.3 → 0.3
Time: 32.9s
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 r165234 = x;
        double r165235 = 27.0;
        double r165236 = r165234 * r165235;
        double r165237 = y;
        double r165238 = r165236 * r165237;
        return r165238;
}

double f(double x, double y) {
        double r165239 = x;
        double r165240 = y;
        double r165241 = 27.0;
        double r165242 = r165240 * r165241;
        double r165243 = r165239 * r165242;
        return r165243;
}

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