Details

Time bar (total: 4.0s)

sample30.0ms

Algorithm
intervals
Results
18.0ms268×body80valid

simplify53.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0258
1398
2648
31158
42078
54658
613378
750018

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 8.7b

localize11.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ x (/ (- (* y z) x) (- (* t z) x)))
0.7b
(/ (+ x (/ (- (* y z) x) (- (* t z) x))) (+ x 1.0))
9.5b
(/ (- (* y z) x) (- (* t z) x))

rewrite89.0ms

Algorithm
rewrite-expression-head
Rules
44×*-un-lft-identity
25×times-frac
22×add-sqr-sqrt add-cube-cbrt
11×distribute-lft-out
add-exp-log associate-/r* add-cbrt-cube associate-/l*
add-log-exp
div-sub associate-/r/ associate-/l/
pow1 expm1-log1p-u fma-def flip3-+ flip-+ log1p-expm1-u
cbrt-undiv associate-+r- flip3-- frac-2neg div-exp clear-num flip-- div-inv
+-commutative sum-log
Counts
3 → 95
Calls
3 calls:
16.0ms
(+ x (/ (- (* y z) x) (- (* t z) x)))
58.0ms
(/ (+ x (/ (- (* y z) x) (- (* t z) x))) (+ x 1.0))
12.0ms
(/ (- (* y z) x) (- (* t z) x))

series248.0ms

Counts
3 → 9
Calls
3 calls:
78.0ms
(+ x (/ (- (* y z) x) (- (* t z) x)))
115.0ms
(/ (+ x (/ (- (* y z) x) (- (* t z) x))) (+ x 1.0))
55.0ms
(/ (- (* y z) x) (- (* t z) x))

simplify46.0ms

Algorithm
egg-herbie
Counts
104 → 104
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0398994
11427934
25001932

prune275.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 0.7b

localize12.0ms

Local error

Found 4 expressions with local error:

0.7b
(/ (- (fma (/ y (- (* t z) x)) z x) (/ x (- (* t z) x))) (+ x 1.0))
2.9b
(/ x (- (* t z) x))
3.4b
(/ y (- (* t z) x))
3.9b
(fma (/ y (- (* t z) x)) z x)

rewrite67.0ms

Algorithm
rewrite-expression-head
Rules
57×add-sqr-sqrt
56×*-un-lft-identity
47×times-frac
32×add-cube-cbrt
12×associate-/l*
10×add-exp-log associate-/r* add-cbrt-cube difference-of-squares
distribute-lft-out
associate-/r/
distribute-lft-out--
pow1 expm1-log1p-u log1p-expm1-u add-log-exp
cbrt-undiv flip3-- frac-2neg div-exp clear-num flip-- div-inv
associate-/l/
flip3-+ div-sub flip-+ fma-udef
Counts
4 → 125
Calls
4 calls:
50.0ms
(/ (- (fma (/ y (- (* t z) x)) z x) (/ x (- (* t z) x))) (+ x 1.0))
5.0ms
(/ x (- (* t z) x))
5.0ms
(/ y (- (* t z) x))
0.0ms
(fma (/ y (- (* t z) x)) z x)

series246.0ms

Counts
4 → 12
Calls
4 calls:
110.0ms
(/ (- (fma (/ y (- (* t z) x)) z x) (/ x (- (* t z) x))) (+ x 1.0))
58.0ms
(/ x (- (* t z) x))
27.0ms
(/ y (- (* t z) x))
50.0ms
(fma (/ y (- (* t z) x)) z x)

simplify52.0ms

Algorithm
egg-herbie
Counts
137 → 137
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
04881388
116791305
250021301

prune392.0ms

Pruning

13 alts after pruning (12 fresh and 1 done)

Merged error: 0.7b

localize13.0ms

Local error

Found 4 expressions with local error:

0.9b
(/ 1 (/ (- (* t z) x) x))
2.9b
(/ (- (* t z) x) x)
3.4b
(/ y (- (* t z) x))
3.9b
(fma (/ y (- (* t z) x)) z x)

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
93×times-frac
62×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
19×add-exp-log associate-/r*
13×add-cbrt-cube
div-exp associate-/l*
div-inv
pow1 cbrt-undiv
expm1-log1p-u log1p-expm1-u add-log-exp
frac-2neg clear-num associate-/r/
rec-exp flip3-- 1-exp flip-- associate-/l/
pow-flip div-sub fma-udef inv-pow
Counts
4 → 151
Calls
4 calls:
11.0ms
(/ 1 (/ (- (* t z) x) x))
8.0ms
(/ (- (* t z) x) x)
5.0ms
(/ y (- (* t z) x))
0.0ms
(fma (/ y (- (* t z) x)) z x)

series154.0ms

Counts
4 → 12
Calls
4 calls:
30.0ms
(/ 1 (/ (- (* t z) x) x))
40.0ms
(/ (- (* t z) x) x)
32.0ms
(/ y (- (* t z) x))
53.0ms
(fma (/ y (- (* t z) x)) z x)

simplify76.0ms

Algorithm
egg-herbie
Counts
163 → 163
Iterations

Useful iterations: 2 (58.0ms)

IterNodesCost
05071165
124851044
25001973

prune418.0ms

Pruning

12 alts after pruning (11 fresh and 1 done)

Merged error: 0.7b

localize14.0ms

Local error

Found 4 expressions with local error:

1.0b
(/ 1 (/ (- (* t z) x) y))
2.9b
(/ (- (* t z) x) x)
3.4b
(/ (- (* t z) x) y)
3.9b
(fma (/ 1 (/ (- (* t z) x) y)) z x)

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
93×times-frac
62×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
19×add-exp-log associate-/r*
13×add-cbrt-cube
div-exp associate-/l*
div-inv
pow1 cbrt-undiv
expm1-log1p-u log1p-expm1-u associate-/l/ add-log-exp
frac-2neg clear-num
rec-exp flip3-- 1-exp div-sub flip--
pow-flip associate-/r/ fma-udef inv-pow
Counts
4 → 152
Calls
4 calls:
11.0ms
(/ 1 (/ (- (* t z) x) y))
8.0ms
(/ (- (* t z) x) x)
8.0ms
(/ (- (* t z) x) y)
0.0ms
(fma (/ 1 (/ (- (* t z) x) y)) z x)

series186.0ms

Counts
4 → 12
Calls
4 calls:
50.0ms
(/ 1 (/ (- (* t z) x) y))
40.0ms
(/ (- (* t z) x) x)
53.0ms
(/ (- (* t z) x) y)
42.0ms
(fma (/ 1 (/ (- (* t z) x) y)) z x)

simplify71.0ms

Algorithm
egg-herbie
Counts
164 → 164
Iterations

Useful iterations: 2 (57.0ms)

IterNodesCost
05031188
123951065
25001995

prune415.0ms

Pruning

12 alts after pruning (10 fresh and 2 done)

Merged error: 0.7b

regimes307.0ms

Accuracy

69.1% (1.4b remaining)

Error of 1.6b against oracle of 0.2b and baseline of 4.8b

bsearch2.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03740
13740

end0.0ms

sample797.0ms

Algorithm
intervals
Results
582.0ms8330×body80valid