Average Error: 0 → 0
Time: 3.7s
Precision: 64
Internal Precision: 128
\[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}\]

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. Initial simplification0

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

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

    Runtime

    Time bar (total: 3.7s)Debug logProfile

    start106.0ms

    Algorithm
    intervals

    setup94.0ms

    Pruning

    1 alts after pruning (1 fresh and 0 done)

    Merged error: 0b

    localize1.0ms

    Local error

    Found 0 expressions with local error:

    rewrite0.0ms

    Algorithm
    rewrite-expression-head
    Counts
    0 → 0
    Calls

    0 calls. Slowest were:

    series0.0ms

    Counts
    0 → 0
    Calls

    0 calls. Slowest were:

    simplify0.0ms

    Counts
    0 → 0
    Calls

    0 calls. Slowest were:

    prune3.0ms

    Pruning

    1 alts after pruning (0 fresh and 1 done)

    Merged error: 0b

    herbie shell --seed 2018357 +o rules:numerics
    (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))))