Average Error: 0 → 0
Time: 3.0s
Precision: 64
\[2 \cdot \left(\left(1 \cdot \frac{1}{9} + \frac{1}{9} \cdot \frac{1}{9}\right) + \frac{1}{9} \cdot 1\right)\]
\[\left(2 \cdot \frac{1}{9}\right) \cdot \left(\left(1 + \frac{1}{9}\right) + 1\right)\]
2 \cdot \left(\left(1 \cdot \frac{1}{9} + \frac{1}{9} \cdot \frac{1}{9}\right) + \frac{1}{9} \cdot 1\right)
\left(2 \cdot \frac{1}{9}\right) \cdot \left(\left(1 + \frac{1}{9}\right) + 1\right)
double f() {
        double r52294 = 2.0;
        double r52295 = 1.0;
        double r52296 = 9.0;
        double r52297 = r52295 / r52296;
        double r52298 = r52295 * r52297;
        double r52299 = r52297 * r52297;
        double r52300 = r52298 + r52299;
        double r52301 = r52297 * r52295;
        double r52302 = r52300 + r52301;
        double r52303 = r52294 * r52302;
        return r52303;
}

double f() {
        double r52304 = 2.0;
        double r52305 = 1.0;
        double r52306 = 9.0;
        double r52307 = r52305 / r52306;
        double r52308 = r52304 * r52307;
        double r52309 = r52305 + r52307;
        double r52310 = r52309 + r52305;
        double r52311 = r52308 * r52310;
        return r52311;
}

Error

Try it out

Your Program's Arguments

    Results

    Enter valid numbers for all inputs

    Target

    Original0
    Target0
    Herbie0
    \[\left(\left(\frac{1}{9} \cdot 1\right) \cdot 2 + 2 \cdot \left(\frac{1}{9} \cdot \frac{1}{9}\right)\right) + 2 \cdot \left(1 \cdot \frac{1}{9}\right)\]

    Derivation

    1. Initial program 0

      \[2 \cdot \left(\left(1 \cdot \frac{1}{9} + \frac{1}{9} \cdot \frac{1}{9}\right) + \frac{1}{9} \cdot 1\right)\]
    2. Final simplification0

      \[\leadsto \left(2 \cdot \frac{1}{9}\right) \cdot \left(\left(1 + \frac{1}{9}\right) + 1\right)\]

    Reproduce

    herbie shell --seed 2019291 
    (FPCore ()
      :name "Rectangular parallelepiped of dimension a×b×c"
      :precision binary64
    
      :herbie-target
      (+ (+ (* (* (/ 1 9) 1) 2) (* 2 (* (/ 1 9) (/ 1 9)))) (* 2 (* 1 (/ 1 9))))
    
      (* 2 (+ (+ (* 1 (/ 1 9)) (* (/ 1 9) (/ 1 9))) (* (/ 1 9) 1))))