Details

Time bar (total: 4.2s)

sample28.0ms

Algorithm
intervals
Results
15.0ms440×body80valid

simplify77.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (5.0ms)

IterNodesCost
0237
1596
21116
32046
43696
58396
621686
750016

prune8.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 30.9b

localize10.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (fma x x (- (* y y) (* z z))) 2.0)
0.3b
(fma x x (- (* y y) (* z z)))
6.1b
(- (* y y) (* z z))
28.4b
(/ (/ (fma x x (- (* y y) (* z z))) 2.0) y)

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
84×times-frac
54×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
16×associate-/l*
11×add-exp-log add-cbrt-cube
associate-/r* div-inv add-log-exp
pow1 cbrt-undiv expm1-log1p-u div-exp log1p-expm1-u
frac-2neg clear-num
sub-neg flip3-- fma-neg diff-log prod-diff flip-- fma-udef associate-/l/ difference-of-squares
Counts
4 → 128
Calls
4 calls:
2.0ms
(/ (fma x x (- (* y y) (* z z))) 2.0)
0.0ms
(fma x x (- (* y y) (* z z)))
3.0ms
(- (* y y) (* z z))
7.0ms
(/ (/ (fma x x (- (* y y) (* z z))) 2.0) y)

series271.0ms

Counts
4 → 12
Calls
4 calls:
74.0ms
(/ (fma x x (- (* y y) (* z z))) 2.0)
54.0ms
(fma x x (- (* y y) (* z z)))
39.0ms
(- (* y y) (* z z))
104.0ms
(/ (/ (fma x x (- (* y y) (* z z))) 2.0) y)

simplify70.0ms

Algorithm
egg-herbie
Counts
140 → 140
Iterations

Useful iterations: 2 (54.0ms)

IterNodesCost
04881385
119481287
250021284

prune479.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 15.2b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (+ y (/ (pow x 2) y)) (/ (pow z 2) y))
0.0b
(+ y (/ (pow x 2) y))
9.9b
(/ (pow x 2) y)
11.1b
(/ (pow z 2) y)

rewrite182.0ms

Algorithm
rewrite-expression-head
Rules
193×*-un-lft-identity
148×times-frac
140×add-sqr-sqrt
128×add-cube-cbrt
112×prod-diff
61×unpow-prod-down
31×distribute-lft-out
21×unpow2 sqr-pow
16×associate-/l*
14×add-exp-log
11×add-log-exp
add-cbrt-cube
div-exp associate-/r* div-inv
difference-of-squares
pow1 expm1-log1p-u fma-neg log1p-expm1-u
fma-def
cbrt-undiv pow-to-exp frac-2neg flip3-+ diff-log pow-exp clear-num sum-log frac-sub flip-+ distribute-lft-out--
+-commutative sub-neg flip3-- associate--l+ flip--
Counts
4 → 260
Calls
4 calls:
144.0ms
(- (+ y (/ (pow x 2) y)) (/ (pow z 2) y))
11.0ms
(+ y (/ (pow x 2) y))
4.0ms
(/ (pow x 2) y)
4.0ms
(/ (pow z 2) y)

series126.0ms

Counts
4 → 12
Calls
4 calls:
51.0ms
(- (+ y (/ (pow x 2) y)) (/ (pow z 2) y))
31.0ms
(+ y (/ (pow x 2) y))
21.0ms
(/ (pow x 2) y)
22.0ms
(/ (pow z 2) y)

simplify126.0ms

Algorithm
egg-herbie
Counts
272 → 272
Iterations

Useful iterations: 2 (91.0ms)

IterNodesCost
09664460
132723145
250012953

prune546.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 1.7b

localize17.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (+ y (/ (pow x 2) y)) (* z (/ z y)))
0.0b
(+ y (/ (pow x 2) y))
0.2b
(* z (/ z y))
9.9b
(/ (pow x 2) y)

rewrite160.0ms

Algorithm
rewrite-expression-head
Rules
38×*-un-lft-identity
37×add-sqr-sqrt
34×times-frac
32×add-cube-cbrt
14×add-exp-log
13×associate-*r*
12×unpow-prod-down
11×add-cbrt-cube add-log-exp
associate-/l*
pow1
expm1-log1p-u fma-neg div-exp prod-diff log1p-expm1-u unpow2 sqr-pow
fma-def associate-*r/ associate-*l* associate-/r* distribute-lft-out
cbrt-undiv flip3-+ diff-log prod-exp sum-log frac-sub cbrt-unprod flip-+ div-inv unswap-sqr
+-commutative pow-to-exp sub-neg flip3-- frac-2neg pow-prod-down pow-exp associate--l+ clear-num *-commutative flip--
Counts
4 → 128
Calls
4 calls:
132.0ms
(- (+ y (/ (pow x 2) y)) (* z (/ z y)))
12.0ms
(+ y (/ (pow x 2) y))
7.0ms
(* z (/ z y))
4.0ms
(/ (pow x 2) y)

series124.0ms

Counts
4 → 12
Calls
4 calls:
45.0ms
(- (+ y (/ (pow x 2) y)) (* z (/ z y)))
31.0ms
(+ y (/ (pow x 2) y))
27.0ms
(* z (/ z y))
22.0ms
(/ (pow x 2) y)

simplify76.0ms

Algorithm
egg-herbie
Counts
140 → 140
Iterations

Useful iterations: 2 (64.0ms)

IterNodesCost
0460747
11930676
25001670

prune401.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 0.0b

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ y (* (fabs x) (/ (fabs x) y)))
0.0b
(- (+ y (* (fabs x) (/ (fabs x) y))) (* z (/ z y)))
0.2b
(* z (/ z y))
0.2b
(* (fabs x) (/ (fabs x) y))

rewrite35.0ms

Algorithm
rewrite-expression-head
Rules
33×add-sqr-sqrt
26×associate-*r*
23×add-cube-cbrt *-un-lft-identity
20×times-frac
14×add-exp-log add-cbrt-cube
11×add-log-exp
pow1
associate-*l*
expm1-log1p-u associate-*r/ prod-exp cbrt-unprod log1p-expm1-u unswap-sqr
fma-def fma-neg prod-diff
cbrt-undiv flip3-+ diff-log div-exp pow-prod-down sum-log *-commutative frac-sub flip-+ div-inv
+-commutative sub-neg flip3-- associate--l+ flip--
Counts
4 → 108
Calls
4 calls:
2.0ms
(+ y (* (fabs x) (/ (fabs x) y)))
14.0ms
(- (+ y (* (fabs x) (/ (fabs x) y))) (* z (/ z y)))
7.0ms
(* z (/ z y))
7.0ms
(* (fabs x) (/ (fabs x) y))

series130.0ms

Counts
4 → 12
Calls
4 calls:
23.0ms
(+ y (* (fabs x) (/ (fabs x) y)))
57.0ms
(- (+ y (* (fabs x) (/ (fabs x) y))) (* z (/ z y)))
27.0ms
(* z (/ z y))
23.0ms
(* (fabs x) (/ (fabs x) y))

simplify101.0ms

Algorithm
egg-herbie
Counts
120 → 120
Iterations

Useful iterations: 2 (87.0ms)

IterNodesCost
0476812
12298717
25001703

prune372.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0.0b

regimes101.0ms

Accuracy

0% (0.1b remaining)

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

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0169
1169

end0.0ms

sample754.0ms

Algorithm
intervals
Results
469.0ms13668×body80valid