Average Error: 0 → 0
Time: 1.1s
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)\]
\[\frac{38}{81}\]
2 \cdot \left(\left(1 \cdot \frac{1}{9} + \frac{1}{9} \cdot \frac{1}{9}\right) + \frac{1}{9} \cdot 1\right)
\frac{38}{81}
double f() {
        double r9172968 = 2.0;
        double r9172969 = 1.0;
        double r9172970 = 9.0;
        double r9172971 = r9172969 / r9172970;
        double r9172972 = r9172969 * r9172971;
        double r9172973 = r9172971 * r9172971;
        double r9172974 = r9172972 + r9172973;
        double r9172975 = r9172971 * r9172969;
        double r9172976 = r9172974 + r9172975;
        double r9172977 = r9172968 * r9172976;
        return r9172977;
}

double f() {
        double r9172978 = 0.4691358024691358;
        return r9172978;
}

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

      \[\leadsto \color{blue}{\frac{38}{81}}\]
    3. Final simplification0

      \[\leadsto \frac{38}{81}\]

    Reproduce

    herbie shell --seed 2019124 
    (FPCore ()
      :name "Rectangular parallelepiped of dimension a×b×c"
    
      :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))))