Details

Time bar (total: 3.6s)

sample20.0ms

Algorithm
intervals
Results
10.0ms270×body80valid

simplify10.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0197
1367
2487
3667
4727
5727

prune2.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 26.4b

localize9.0ms

Local error

Found 2 expressions with local error:

0.5b
(- (* x.im y.re) (* x.re y.im))
25.9b
(/ (- (* x.im y.re) (* x.re y.im)) (+ (* y.re y.re) (* y.im y.im)))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
times-frac
add-exp-log add-cbrt-cube add-log-exp
associate-/r* associate-/l*
pow1 flip3-- associate-/r/ flip-- associate-/l/
cbrt-undiv sub-neg frac-2neg flip3-+ diff-log div-sub div-exp clear-num flip-+ div-inv
Counts
2 → 44
Calls
2 calls:
3.0ms
(- (* x.im y.re) (* x.re y.im))
8.0ms
(/ (- (* x.im y.re) (* x.re y.im)) (+ (* y.re y.re) (* y.im y.im)))

series122.0ms

Counts
2 → 6
Calls
2 calls:
38.0ms
(- (* x.im y.re) (* x.re y.im))
84.0ms
(/ (- (* x.im y.re) (* x.re y.im)) (+ (* y.re y.re) (* y.im y.im)))

simplify97.0ms

Algorithm
egg-herbie
Counts
50 → 50
Iterations

Useful iterations: 2 (23.0ms)

IterNodesCost
0251464
1938427
23504426
35001426

prune132.0ms

Filtered
50 candidates to 39 candidates (78.0%)
Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 25.7b

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(- (* x.im y.re) (* x.re y.im))
16.0b
(/ (- (* x.im y.re) (* x.re y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
29.7b
(sqrt (+ (* y.re y.re) (* y.im y.im)))
29.7b
(sqrt (+ (* y.re y.re) (* y.im y.im)))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt
21×add-cube-cbrt *-un-lft-identity
18×times-frac sqrt-prod
pow1 add-exp-log sqrt-div associate-/r* add-cbrt-cube add-log-exp
flip3-+ flip-+ associate-/l*
rem-sqrt-square flip3-- sqrt-pow1 pow1/2 associate-/r/ flip-- associate-/l/
cbrt-undiv sub-neg frac-2neg diff-log div-sub div-exp clear-num div-inv
Counts
4 → 86
Calls
4 calls:
3.0ms
(- (* x.im y.re) (* x.re y.im))
9.0ms
(/ (- (* x.im y.re) (* x.re y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
3.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
7.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

series214.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(- (* x.im y.re) (* x.re y.im))
107.0ms
(/ (- (* x.im y.re) (* x.re y.im)) (sqrt (+ (* y.re y.re) (* y.im y.im))))
38.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
34.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))

simplify93.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 2 (24.0ms)

IterNodesCost
0304910
1990857
23354845
35001845

prune273.0ms

Filtered
98 candidates to 75 candidates (76.5%)
Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 22.4b

localize14.0ms

Local error

Found 2 expressions with local error:

0.5b
(- (* x.im y.re) (* x.re y.im))
25.9b
(/ (* 1 (- (* x.im y.re) (* x.re y.im))) (+ (* y.re y.re) (* y.im y.im)))

rewrite13.0ms

Algorithm
rewrite-expression-head
Rules
add-exp-log
add-cbrt-cube
add-sqr-sqrt add-cube-cbrt *-un-lft-identity add-log-exp
times-frac div-exp associate-/r*
pow1 cbrt-undiv flip3-- associate-*r/ prod-exp associate-/r/ flip-- associate-/l/
sub-neg frac-2neg flip3-+ diff-log 1-exp clear-num cbrt-unprod flip-+ div-inv associate-/l*
Counts
2 → 38
Calls
2 calls:
3.0ms
(- (* x.im y.re) (* x.re y.im))
9.0ms
(/ (* 1 (- (* x.im y.re) (* x.re y.im))) (+ (* y.re y.re) (* y.im y.im)))

series120.0ms

Counts
2 → 6
Calls
2 calls:
35.0ms
(- (* x.im y.re) (* x.re y.im))
85.0ms
(/ (* 1 (- (* x.im y.re) (* x.re y.im))) (+ (* y.re y.re) (* y.im y.im)))

simplify113.0ms

Algorithm
egg-herbie
Counts
44 → 44
Iterations

Useful iterations: 3 (108.0ms)

IterNodesCost
0276369
11117315
24660313
35002309

prune110.0ms

Filtered
44 candidates to 29 candidates (65.9%)
Pruning

11 alts after pruning (9 fresh and 2 done)

Merged error: 22.4b

localize36.0ms

Local error

Found 4 expressions with local error:

10.9b
(* (/ 1 (* (fabs (cbrt (+ (* y.re y.re) (* y.im y.im)))) 1)) (/ (- (* x.im y.re) (* x.re y.im)) (sqrt (cbrt (+ (* y.re y.re) (* y.im y.im))))))
29.7b
(sqrt (+ (* y.re y.re) (* y.im y.im)))
30.8b
(cbrt (+ (* y.re y.re) (* y.im y.im)))
30.8b
(cbrt (+ (* y.re y.re) (* y.im y.im)))

rewrite46.0ms

Algorithm
rewrite-expression-head
Rules
66×add-exp-log
40×add-sqr-sqrt
33×times-frac associate-*r*
32×prod-exp
28×add-cube-cbrt *-un-lft-identity
25×add-cbrt-cube
23×sqrt-prod
22×div-exp
16×cbrt-prod
12×1-exp
cbrt-unprod
pow1 cbrt-undiv associate-*l*
rec-exp cbrt-div
flip3-+ sqrt-div flip-+ add-log-exp unswap-sqr
pow1/3 associate-/r/ div-inv
frac-times rem-sqrt-square sqrt-pow1 pow1/2 associate-*r/ pow-prod-down associate-*l/ *-commutative
Counts
4 → 123
Calls
4 calls:
19.0ms
(* (/ 1 (* (fabs (cbrt (+ (* y.re y.re) (* y.im y.im)))) 1)) (/ (- (* x.im y.re) (* x.re y.im)) (sqrt (cbrt (+ (* y.re y.re) (* y.im y.im))))))
9.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
6.0ms
(cbrt (+ (* y.re y.re) (* y.im y.im)))
6.0ms
(cbrt (+ (* y.re y.re) (* y.im y.im)))

series699.0ms

Counts
4 → 12
Calls
4 calls:
477.0ms
(* (/ 1 (* (fabs (cbrt (+ (* y.re y.re) (* y.im y.im)))) 1)) (/ (- (* x.im y.re) (* x.re y.im)) (sqrt (cbrt (+ (* y.re y.re) (* y.im y.im))))))
34.0ms
(sqrt (+ (* y.re y.re) (* y.im y.im)))
93.0ms
(cbrt (+ (* y.re y.re) (* y.im y.im)))
94.0ms
(cbrt (+ (* y.re y.re) (* y.im y.im)))

simplify85.0ms

Algorithm
egg-herbie
Counts
135 → 135
Iterations

Useful iterations: 2 (60.0ms)

IterNodesCost
07492099
133631804
250021787

prune442.0ms

Filtered
135 candidates to 91 candidates (67.4%)
Pruning

12 alts after pruning (10 fresh and 2 done)

Merged error: 22.4b

regimes331.0ms

Accuracy

45% (1.6b remaining)

Error of 24.8b against oracle of 23.2b and baseline of 26.2b

bsearch2.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03239
13639
23639

end0.0ms

sample529.0ms

Algorithm
intervals
Results
314.0ms8443×body80valid