Details

Time bar (total: 6.4s)

sample28.0ms

Algorithm
intervals
Results
13.0ms408×body80valid

simplify57.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (4.0ms)

IterNodesCost
0237
1596
21116
32046
43696
58396
621686
750016

prune6.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 30.6b

localize9.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* x x) (* y y))
5.6b
(- (+ (* x x) (* y y)) (* z z))
28.5b
(/ (- (+ (* x x) (* y y)) (* z z)) (* y 2.0))

rewrite130.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt add-log-exp
add-exp-log add-cbrt-cube
add-cube-cbrt *-un-lft-identity
times-frac associate-/l*
pow1 expm1-log1p-u fma-neg prod-diff log1p-expm1-u difference-of-squares
cbrt-undiv flip3-- diff-log div-exp sum-log flip-- associate-/l/
+-commutative sub-neg fma-def frac-2neg flip3-+ div-sub prod-exp associate--l+ clear-num associate-/r* cbrt-unprod flip-+ div-inv
Counts
3 → 65
Calls
3 calls:
8.0ms
(+ (* x x) (* y y))
44.0ms
(- (+ (* x x) (* y y)) (* z z))
77.0ms
(/ (- (+ (* x x) (* y y)) (* z z)) (* y 2.0))

series142.0ms

Counts
3 → 9
Calls
3 calls:
30.0ms
(+ (* x x) (* y y))
36.0ms
(- (+ (* x x) (* y y)) (* z z))
75.0ms
(/ (- (+ (* x x) (* y y)) (* z z)) (* y 2.0))

simplify43.0ms

Algorithm
egg-herbie
Counts
74 → 74
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0365571
11599486
25002469

prune189.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 13.7b

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ y (/ (pow x 2) y))
0.2b
(* 0.5 (- (+ y (/ (pow x 2) y)) (/ (pow z 2) y)))
10.0b
(/ (pow z 2) y)
10.6b
(/ (pow x 2) y)

rewrite424.0ms

Algorithm
rewrite-expression-head
Rules
336×*-un-lft-identity
244×times-frac
231×add-sqr-sqrt
224×prod-diff
217×add-cube-cbrt
115×distribute-rgt-in distribute-lft-in
97×unpow-prod-down
58×distribute-lft-out
33×unpow2 sqr-pow
16×add-exp-log associate-/l*
10×associate-*r* add-cbrt-cube div-inv
pow1 div-exp associate-/r* add-log-exp
difference-of-squares
expm1-log1p-u associate-*r/ log1p-expm1-u
fma-def associate-*l*
cbrt-undiv pow-to-exp sub-neg frac-2neg flip3-+ pow-exp associate--l+ clear-num frac-sub flip-+ distribute-lft-out--
+-commutative flip3-- pow-prod-down prod-exp sum-log *-commutative flip-- cbrt-unprod unswap-sqr
Counts
4 → 380
Calls
4 calls:
18.0ms
(+ y (/ (pow x 2) y))
364.0ms
(* 0.5 (- (+ y (/ (pow x 2) y)) (/ (pow z 2) y)))
8.0ms
(/ (pow z 2) y)
8.0ms
(/ (pow x 2) y)

series119.0ms

Counts
4 → 12
Calls
4 calls:
24.0ms
(+ y (/ (pow x 2) y))
50.0ms
(* 0.5 (- (+ y (/ (pow x 2) y)) (/ (pow z 2) y)))
25.0ms
(/ (pow z 2) y)
19.0ms
(/ (pow x 2) y)

simplify167.0ms

Algorithm
egg-herbie
Counts
392 → 392
Iterations

Useful iterations: 2 (96.0ms)

IterNodesCost
012698538
148036226
250016222

prune506.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 1.5b

localize10.0ms

Local error

Found 4 expressions with local error:

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

rewrite481.0ms

Algorithm
rewrite-expression-head
Rules
630×times-frac
617×*-un-lft-identity
445×add-sqr-sqrt
434×add-cube-cbrt
352×prod-diff
179×distribute-rgt-in distribute-lft-in
90×distribute-lft-out
38×div-inv
16×add-exp-log associate-/r*
13×add-cbrt-cube
12×unpow-prod-down
11×associate-/l*
associate-/r/
associate-*r*
pow1 div-exp add-log-exp
cbrt-undiv expm1-log1p-u associate-*r/ log1p-expm1-u unpow2 sqr-pow
fma-def associate-*l* difference-of-squares
sub-neg frac-2neg flip3-+ associate--l+ clear-num frac-sub flip-+ distribute-lft-out--
+-commutative pow-to-exp flip3-- pow-prod-down pow-exp prod-exp sum-log *-commutative flip-- cbrt-unprod unswap-sqr
Counts
4 → 527
Calls
4 calls:
17.0ms
(+ y (/ (pow x 2) y))
8.0ms
(/ z (/ y z))
397.0ms
(* 0.5 (- (+ y (/ (pow x 2) y)) (/ z (/ y z))))
8.0ms
(/ (pow x 2) y)

series116.0ms

Counts
4 → 12
Calls
4 calls:
31.0ms
(+ y (/ (pow x 2) y))
17.0ms
(/ z (/ y z))
49.0ms
(* 0.5 (- (+ y (/ (pow x 2) y)) (/ z (/ y z))))
18.0ms
(/ (pow x 2) y)

simplify151.0ms

Algorithm
egg-herbie
Counts
539 → 539
Iterations

Useful iterations: 1 (40.0ms)

IterNodesCost
0187715086
1500211964

prune791.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0.3b

localize12.0ms

Local error

Found 4 expressions with local error:

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

rewrite900.0ms

Algorithm
rewrite-expression-head
Rules
769×times-frac
684×*-un-lft-identity
512×add-sqr-sqrt
501×add-cube-cbrt
352×prod-diff
179×distribute-rgt-in distribute-lft-in
90×distribute-lft-out
46×div-inv
42×unpow-prod-down
26×associate-/r*
24×add-exp-log
16×add-cbrt-cube
14×sqr-pow
12×div-exp
10×associate-/r/ associate-/l*
associate-*r*
pow1 cbrt-undiv add-log-exp
expm1-log1p-u associate-*r/ log1p-expm1-u
fma-def associate-*l* difference-of-squares
pow-to-exp sub-neg frac-2neg flip3-+ pow-exp associate--l+ clear-num frac-sub flip-+ distribute-lft-out--
+-commutative flip3-- pow-prod-down prod-exp sum-log *-commutative flip-- cbrt-unprod unswap-sqr
Counts
4 → 608
Calls
4 calls:
36.0ms
(+ y (/ (pow x (/ 2 2)) (/ y x)))
8.0ms
(/ z (/ y z))
792.0ms
(* 0.5 (- (+ y (/ (pow x (/ 2 2)) (/ y x))) (/ z (/ y z))))
13.0ms
(/ (pow x (/ 2 2)) (/ y x))

series119.0ms

Counts
4 → 12
Calls
4 calls:
28.0ms
(+ y (/ (pow x (/ 2 2)) (/ y x)))
16.0ms
(/ z (/ y z))
48.0ms
(* 0.5 (- (+ y (/ (pow x (/ 2 2)) (/ y x))) (/ z (/ y z))))
26.0ms
(/ (pow x (/ 2 2)) (/ y x))

simplify174.0ms

Algorithm
egg-herbie
Counts
620 → 620
Iterations

Useful iterations: 1 (43.0ms)

IterNodesCost
0226117537
1500215385

prune953.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0.3b

regimes90.0ms

Accuracy

0% (0.1b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0209
1209

end0.0ms

sample815.0ms

Algorithm
intervals
Results
438.0ms13746×body80valid