Details

Time bar (total: 6.6s)

sample350.0ms

Algorithm
intervals
Results
38.0ms64×body1280valid
24.0ms257×body80valid
18.0ms47×body640valid
5.0ms20×body320valid
3.0ms14×body160valid

simplify39.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03521
16317
29817
321717
489517
5500117

prune30.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 32.0b

Counts
2 → 2

localize24.0ms

Local error

Found 4 expressions with local error:

0.7b
(* (atan2 x.im x.re) y.re)
29.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
31.3b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt
pow1 add-cube-cbrt *-un-lft-identity
add-exp-log sqrt-prod add-cbrt-cube
expm1-log1p-u sqrt-div log1p-expm1-u add-log-exp
associate-*r* associate-*l*
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+ hypot-def
cos-sum pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
4 → 66
Calls
4 calls:
4.0ms
(* (atan2 x.im x.re) y.re)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
8.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series248.0ms

Counts
4 → 12
Calls
4 calls:
19.0ms
(* (atan2 x.im x.re) y.re)
36.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
38.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
156.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify79.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 2 (15.0ms)

IterNodesCost
0205456
1546415
21264411
32748411
45001411

prune354.0ms

Filtered
78 candidates to 66 candidates (84.6%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New72678
Fresh011
Picked101
Done000
Total73780

Merged error: 18.2b

Counts
80 → 7

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im))
0.2b
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
0.7b
(* (atan2 x.im x.re) y.im)
29.2b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
11×pow1
add-cube-cbrt *-un-lft-identity associate-*l*
add-exp-log add-cbrt-cube
associate-*r* add-log-exp
expm1-log1p-u log1p-expm1-u
sqrt-prod log-pow
sqrt-pow1 pow1/2 sqrt-div pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
sub-neg rem-sqrt-square flip3-- flip3-+ fma-neg diff-log prod-diff flip-- flip-+ hypot-def
Counts
4 → 77
Calls
4 calls:
4.0ms
(- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im))
5.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
3.0ms
(* (atan2 x.im x.re) y.im)
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

series269.0ms

Counts
4 → 12
Calls
4 calls:
123.0ms
(- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im))
91.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
16.0ms
(* (atan2 x.im x.re) y.im)
39.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify88.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 3 (78.0ms)

IterNodesCost
0320595
11020544
23156516
35001484

prune288.0ms

Filtered
89 candidates to 70 candidates (78.7%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New87289
Fresh246
Picked101
Done000
Total90696

Merged error: 3.3b

Counts
96 → 6

localize17.0ms

Local error

Found 4 expressions with local error:

0.1b
(fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im)))
0.3b
(pow (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))) 3)
0.7b
(* (atan2 x.im x.re) y.im)
35.1b
(cbrt (pow (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))) 3))

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
12×cbrt-prod add-cube-cbrt *-un-lft-identity
pow1 add-exp-log add-cbrt-cube
unpow-prod-down cube-prod
expm1-log1p-u log1p-expm1-u add-log-exp
pow-unpow associate-*r* associate-*l*
cube-mult unpow3 sqr-pow
pow-to-exp pow-pow pow1/3 pow-prod-down pow-exp prod-exp *-commutative rem-cbrt-cube cbrt-unprod fma-udef rem-cube-cbrt unswap-sqr
Counts
4 → 78
Calls
4 calls:
1.0ms
(fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im)))
2.0ms
(pow (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))) 3)
4.0ms
(* (atan2 x.im x.re) y.im)
2.0ms
(cbrt (pow (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))) 3))

series559.0ms

Counts
4 → 12
Calls
4 calls:
128.0ms
(fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im)))
283.0ms
(pow (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))) 3)
17.0ms
(* (atan2 x.im x.re) y.im)
131.0ms
(cbrt (pow (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))) 3))

simplify49.0ms

Algorithm
egg-herbie
Counts
90 → 90
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0299737
11300693
25002683

prune301.0ms

Filtered
90 candidates to 61 candidates (67.8%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New87390
Fresh055
Picked101
Done000
Total88896

Merged error: 3.3b

Counts
96 → 8

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(expm1 (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))))
0.0b
(log1p (expm1 (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im)))))
0.1b
(fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im)))
0.7b
(* (atan2 x.im x.re) y.im)

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1 add-exp-log add-cube-cbrt *-un-lft-identity add-cbrt-cube
log1p-expm1-u
expm1-log1p-u add-log-exp
associate-*r* associate-*l*
log1p-udef expm1-log1p log1p-expm1 pow-prod-down prod-exp *-commutative cbrt-unprod fma-udef expm1-udef unswap-sqr
Counts
4 → 52
Calls
4 calls:
1.0ms
(expm1 (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))))
1.0ms
(log1p (expm1 (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im)))))
1.0ms
(fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im)))
4.0ms
(* (atan2 x.im x.re) y.im)

series364.0ms

Counts
4 → 12
Calls
4 calls:
104.0ms
(expm1 (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))))
109.0ms
(log1p (expm1 (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im)))))
135.0ms
(fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im)))
16.0ms
(* (atan2 x.im x.re) y.im)

simplify51.0ms

Algorithm
egg-herbie
Counts
64 → 64
Iterations

Useful iterations: 2 (15.0ms)

IterNodesCost
0185419
1525364
21790357
35001357

prune218.0ms

Filtered
64 candidates to 52 candidates (81.3%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New62264
Fresh077
Picked101
Done000
Total63972

Merged error: 3.3b

Counts
72 → 9

regimes217.0ms

Accuracy

0% (0.6b remaining)

Error of 4.0b against oracle of 3.4b and baseline of 4.0b

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02728
13128
23128

end0.0ms

sample3.0s

Algorithm
intervals
Results
1.1s1896×body1280valid
687.0ms8026×body80valid
563.0ms1436×body640valid
169.0ms619×body320valid
57.0ms322×body160valid