Average Error: 0.0 → 0.0
Time: 11.1s
Precision: 64
Internal Precision: 128
\[\left(d1 \cdot d2 + \left(d3 + 5\right) \cdot d1\right) + d1 \cdot 32\]
\[\left(\left(d2 + 37\right) + d3\right) \cdot d1\]

Error

Bits error versus d1

Bits error versus d2

Bits error versus d3

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.0
Target0.0
Herbie0.0
\[d1 \cdot \left(\left(37 + d3\right) + d2\right)\]

Derivation

  1. Initial program 0.0

    \[\left(d1 \cdot d2 + \left(d3 + 5\right) \cdot d1\right) + d1 \cdot 32\]
  2. Simplified0.0

    \[\leadsto \color{blue}{\left(d3 + \left(d2 + 37\right)\right) \cdot d1}\]
  3. Final simplification0.0

    \[\leadsto \left(\left(d2 + 37\right) + d3\right) \cdot d1\]

Reproduce

herbie shell --seed 2019021 
(FPCore (d1 d2 d3)
  :name "FastMath dist3"

  :herbie-target
  (* d1 (+ (+ 37 d3) d2))

  (+ (+ (* d1 d2) (* (+ d3 5) d1)) (* d1 32)))

Details

Time bar (total: 10.7s)Debug log

sample51.0ms

Algorithm
intervals
Results
32.0ms324×body80valid
0.0msbody320valid

simplify280.0ms

Counts
1 → 1
Calls
1 calls:
Slowest
280.0ms
(+ (+ (* d1 d2) (* (+ d3 5) d1)) (* d1 32))

prune18.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.0b

localize21.0ms

Local error

Found 1 expressions with local error:

0.0b
(* (+ d3 (+ d2 37)) d1)

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
associate-*l*
add-cube-cbrt
associate-*l/
*-un-lft-identity
add-sqr-sqrt
add-log-exp
flip-+
*-commutative
add-exp-log
add-cbrt-cube
flip3-+
pow1
Counts
1 → 13
Calls
1 calls:
Slowest
6.0ms
(* (+ d3 (+ d2 37)) d1)

series30.0ms

Counts
1 → 3
Calls
1 calls:
Slowest
30.0ms
(* (+ d3 (+ d2 37)) d1)

simplify871.0ms

Counts
7 → 16
Calls
7 calls:
Slowest
553.0ms
(* (+ (pow d3 3) (pow (+ d2 37) 3)) d1)
185.0ms
(* (- (* d3 d3) (* (+ d2 37) (+ d2 37))) d1)
46.0ms
(+ (* d3 d1) (+ (* d2 d1) (* 37 d1)))
31.0ms
(+ (* d3 d1) (+ (* d2 d1) (* 37 d1)))
28.0ms
(+ (* d3 d1) (+ (* d2 d1) (* 37 d1)))

prune164.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.0b

localize17.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (+ (* d1 d2) (* (+ d3 5) d1)) (* d1 32))
0.0b
(+ (* d1 d2) (* (+ d3 5) d1))
0.0b
(* (+ d3 5) d1)

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
10×add-log-exp
add-cube-cbrt
*-un-lft-identity
sum-log
add-sqr-sqrt
flip-+
add-exp-log
associate-*l*
add-cbrt-cube
flip3-+
pow1
associate-*l/
+-commutative
*-commutative
associate-+l+
Counts
3 → 37
Calls
3 calls:
Slowest
10.0ms
(+ (+ (* d1 d2) (* (+ d3 5) d1)) (* d1 32))
5.0ms
(+ (* d1 d2) (* (+ d3 5) d1))
4.0ms
(* (+ d3 5) d1)

series73.0ms

Counts
3 → 9
Calls
3 calls:
Slowest
28.0ms
(+ (* d1 d2) (* (+ d3 5) d1))
27.0ms
(+ (+ (* d1 d2) (* (+ d3 5) d1)) (* d1 32))
18.0ms
(* (+ d3 5) d1)

simplify701.0ms

Counts
17 → 46
Calls
17 calls:
Slowest
166.0ms
(* (exp (+ (* d1 d2) (* (+ d3 5) d1))) (exp (* d1 32)))
130.0ms
(* (* (exp (* d1 d2)) (exp (* (+ d3 5) d1))) (exp (* d1 32)))
116.0ms
(* (- (* d3 d3) (* 5 5)) d1)
80.0ms
(* (exp (* d1 d2)) (exp (* (+ d3 5) d1)))
34.0ms
(+ (* d2 d1) (+ (* d3 d1) (* 37 d1)))

prune350.0ms

Pruning

3 alts after pruning (1 fresh and 2 done)

Merged error: 0.0b

localize18.0ms

Local error

Found 4 expressions with local error:

0.8b
(* (cbrt (+ d3 5)) (cbrt (+ d3 5)))
0.8b
(cbrt (+ d3 5))
0.8b
(cbrt (+ d3 5))
0.8b
(cbrt (+ d3 5))

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
18×cbrt-div
15×cbrt-prod
11×add-cube-cbrt
11×*-un-lft-identity
11×add-sqr-sqrt
flip-+
flip3-+
pow1
pow1/3
add-exp-log
associate-*l*
associate-*r*
add-log-exp
add-cbrt-cube
frac-times
pow-prod-up
associate-*r/
associate-*l/
pow-prod-down
cbrt-unprod
*-commutative
prod-exp
pow-plus
pow2
Counts
4 → 75
Calls
4 calls:
Slowest
5.0ms
(* (cbrt (+ d3 5)) (cbrt (+ d3 5)))
1.0ms
(cbrt (+ d3 5))
0.0ms
(cbrt (+ d3 5))
0.0ms
(cbrt (+ d3 5))

series169.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
46.0ms
(cbrt (+ d3 5))
45.0ms
(* (cbrt (+ d3 5)) (cbrt (+ d3 5)))
40.0ms
(cbrt (+ d3 5))
38.0ms
(cbrt (+ d3 5))

simplify2.7s

Counts
59 → 87
Calls
59 calls:
Slowest
541.0ms
(- (+ (* 1/15 (* d3 (pow 5 1/3))) (pow 5 1/3)) (* 1/225 (* (pow d3 2) (pow 5 1/3))))
230.0ms
(- (+ (* 1/15 (* d3 (pow 5 1/3))) (pow 5 1/3)) (* 1/225 (* (pow d3 2) (pow 5 1/3))))
224.0ms
(- (+ (* 1/15 (* d3 (pow 5 1/3))) (pow 5 1/3)) (* 1/225 (* (pow d3 2) (pow 5 1/3))))
210.0ms
(- (+ (* 2/15 (* d3 (pow 25 1/3))) (pow 25 1/3)) (* 1/225 (* (pow d3 2) (pow 25 1/3))))
197.0ms
(- (+ (* 5/3 (/ (exp (* 1/3 (- (log -1) (log (/ -1 d3))))) d3)) (exp (* 1/3 (- (log -1) (log (/ -1 d3)))))) (* 25/9 (/ (exp (* 1/3 (- (log -1) (log (/ -1 d3))))) (pow d3 2))))

prune1.0s

Pruning

3 alts after pruning (1 fresh and 2 done)

Merged error: 0b

localize30.0ms

Local error

Found 4 expressions with local error:

0.8b
(cbrt (+ d3 5))
0.8b
(cbrt (+ d3 5))
0.8b
(cbrt (+ d3 5))
0.8b
(cbrt (+ d3 5))

rewrite2.0ms

Algorithm
rewrite-expression-head
Rules
12×cbrt-prod
add-cube-cbrt
*-un-lft-identity
cbrt-div
add-sqr-sqrt
add-log-exp
flip-+
add-exp-log
pow1/3
add-cbrt-cube
flip3-+
pow1
Counts
4 → 52
Calls
4 calls:
Slowest
1.0ms
(cbrt (+ d3 5))
0.0ms
(cbrt (+ d3 5))
0.0ms
(cbrt (+ d3 5))
0.0ms
(cbrt (+ d3 5))

series180.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
51.0ms
(cbrt (+ d3 5))
44.0ms
(cbrt (+ d3 5))
43.0ms
(cbrt (+ d3 5))
43.0ms
(cbrt (+ d3 5))

simplify1.9s

Counts
32 → 64
Calls
32 calls:
Slowest
237.0ms
(- (+ (* 1/15 (* d3 (pow 5 1/3))) (pow 5 1/3)) (* 1/225 (* (pow d3 2) (pow 5 1/3))))
235.0ms
(- (+ (* 1/15 (* d3 (pow 5 1/3))) (pow 5 1/3)) (* 1/225 (* (pow d3 2) (pow 5 1/3))))
221.0ms
(- (+ (* 1/15 (* d3 (pow 5 1/3))) (pow 5 1/3)) (* 1/225 (* (pow d3 2) (pow 5 1/3))))
177.0ms
(- (+ (* 1/15 (* d3 (pow 5 1/3))) (pow 5 1/3)) (* 1/225 (* (pow d3 2) (pow 5 1/3))))
172.0ms
(- (+ (* 5/3 (/ (exp (* 1/3 (- (log -1) (log (/ -1 d3))))) d3)) (exp (* 1/3 (- (log -1) (log (/ -1 d3)))))) (* 25/9 (/ (exp (* 1/3 (- (log -1) (log (/ -1 d3))))) (pow d3 2))))

prune738.0ms

Pruning

3 alts after pruning (0 fresh and 3 done)

Merged error: 0b

regimes221.0ms

Accuracy

0% (0.0b remaining)

Error of 0.0b against oracle of 0.0b and baseline of 0.0b

bsearch1.0ms

end0.0ms

sample1.1s

Algorithm
intervals
Results
979.0ms10055×body80valid
5.0ms17×body640valid
2.0ms11×body320valid
2.0msbody1280valid
1.0msbody160valid