Details

Time bar (total: 6.4s)

sample375.0ms

Algorithm
intervals
Results
42.0ms70×body1280valid
26.0ms67×body640valid
23.0ms250×body80valid
8.0ms30×body320valid
3.0ms14×body160valid

simplify49.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03521
16317
29817
321717
489517
5500117

prune17.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: 33.0b

Counts
2 → 2

localize24.0ms

Local error

Found 4 expressions with local error:

1.6b
(* (atan2 x.im x.re) y.im)
29.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
29.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
30.6b
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite22.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.im)
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)))

series242.0ms

Counts
4 → 12
Calls
4 calls:
16.0ms
(* (atan2 x.im x.re) y.im)
37.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
154.0ms
(cos (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify80.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 2 (15.0ms)

IterNodesCost
0207456
1556415
21286411
32863411
45002411

prune389.0ms

Filtered
78 candidates to 66 candidates (84.6%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New73578
Fresh011
Picked101
Done000
Total74680

Merged error: 20.0b

Counts
80 → 6

localize20.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.3b
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
1.6b
(* (atan2 x.im x.re) y.im)
29.1b
(sqrt (+ (* x.re x.re) (* x.im x.im)))

rewrite19.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)))

series264.0ms

Counts
4 → 12
Calls
4 calls:
121.0ms
(- (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re) (* (atan2 x.im x.re) y.im))
90.0ms
(* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.re)
17.0ms
(* (atan2 x.im x.re) y.im)
36.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))

simplify83.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 3 (76.0ms)

IterNodesCost
0320595
11020544
23156516
35001484

prune337.0ms

Filtered
89 candidates to 70 candidates (78.7%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New88189
Fresh055
Picked011
Done000
Total88795

Merged error: 4.6b

Counts
95 → 7

localize15.0ms

Local error

Found 3 expressions with local error:

0.0b
(exp (+ (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))) 0))
0.1b
(fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im)))
1.6b
(* (atan2 x.im x.re) y.im)

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt *-un-lft-identity
add-cube-cbrt add-log-exp
pow1 add-exp-log add-cbrt-cube
exp-prod
expm1-log1p-u associate-*r* associate-*l* log1p-expm1-u
rem-exp-log
exp-sum pow-prod-down prod-exp sum-log *-commutative cbrt-unprod fma-udef distribute-lft-out unswap-sqr
Counts
3 → 46
Calls
3 calls:
4.0ms
(exp (+ (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))) 0))
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)

series227.0ms

Counts
3 → 9
Calls
3 calls:
82.0ms
(exp (+ (fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im))) 0))
129.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)

simplify42.0ms

Algorithm
egg-herbie
Counts
55 → 55
Iterations

Useful iterations: 3 (38.0ms)

IterNodesCost
0156344
1478303
21498297
35001296

prune233.0ms

Filtered
55 candidates to 45 candidates (81.8%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New53255
Fresh055
Picked011
Done011
Total53962

Merged error: 4.6b

Counts
62 → 9

localize21.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.1b
(fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im)))
1.6b
(* (atan2 x.im x.re) y.im)
1.6b
(* (atan2 x.im x.re) y.im)

rewrite10.0ms

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

series293.0ms

Counts
4 → 12
Calls
4 calls:
129.0ms
(fma y.re (log (hypot x.re x.im)) (- (* (atan2 x.im x.re) y.im)))
132.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)
16.0ms
(* (atan2 x.im x.re) y.im)

simplify71.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 2 (10.0ms)

IterNodesCost
0118372
1347326
2879320
32273320
45001320

prune356.0ms

Filtered
72 candidates to 56 candidates (77.8%)
Pruning

9 alts after pruning (6 fresh and 3 done)

PrunedKeptTotal
New72072
Fresh066
Picked011
Done022
Total72981

Merged error: 4.6b

Counts
81 → 9

regimes215.0ms

Accuracy

0% (0.6b remaining)

Error of 4.1b against oracle of 3.5b and baseline of 4.1b

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0238
1298
2298

end0.0ms

sample3.0s

Algorithm
intervals
Results
1.2s1998×body1280valid
677.0ms7972×body80valid
562.0ms1416×body640valid
178.0ms655×body320valid
55.0ms293×body160valid