Details

Time bar (total: 7.8s)

sample399.0ms

Algorithm
intervals
Results
69.0ms77×body1280valid
26.0ms249×body80valid
21.0ms42×body640valid
9.0ms26×body320valid
1.0msbody160valid

simplify39.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03121
15320
28420
320320
487920
5500120

prune16.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: 31.9b

Counts
2 → 2

localize24.0ms

Local error

Found 4 expressions with local error:

2.7b
(* (atan2 x.im x.re) y.im)
27.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
27.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.7b
(sin (+ (* (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
sqrt-div add-log-exp
associate-*r* associate-*l*
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
sin-sum pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
4 → 56
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
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series253.0ms

Counts
4 → 12
Calls
4 calls:
16.0ms
(* (atan2 x.im x.re) y.im)
38.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
164.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify76.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 2 (14.0ms)

IterNodesCost
0196425
1506388
21139386
32509386
45001386

prune321.0ms

Filtered
68 candidates to 54 candidates (79.4%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New581068
Fresh011
Picked101
Done000
Total591170

Merged error: 18.5b

Counts
70 → 11

localize28.0ms

Local error

Found 4 expressions with local error:

27.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
27.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
27.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.7b
(sin (+ (* (log (* (* (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im))))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity
sqrt-div
add-exp-log add-cbrt-cube add-log-exp
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
sin-sum
Counts
4 → 53
Calls
4 calls:
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
27.0ms
(sin (+ (* (log (* (* (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im))))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

series251.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
37.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
38.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
142.0ms
(sin (+ (* (log (* (* (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im))))) (cbrt (sqrt (+ (* x.re x.re) (* x.im x.im)))))) y.im) (* (atan2 x.im x.re) y.re)))

simplify70.0ms

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 4 (60.0ms)

IterNodesCost
0148607
1303551
2643551
31821551
45001548

prune356.0ms

Filtered
65 candidates to 55 candidates (84.6%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New65065
Fresh01010
Picked011
Done000
Total651176

Merged error: 18.5b

Counts
76 → 11

localize25.0ms

Local error

Found 4 expressions with local error:

6.1b
(cbrt (atan2 x.im x.re))
27.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
27.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.7b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1 sqrt-prod
add-exp-log sqrt-div add-cbrt-cube add-log-exp
cbrt-prod
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
sin-sum pow1/3
Counts
4 → 49
Calls
4 calls:
1.0ms
(cbrt (atan2 x.im x.re))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series254.0ms

Counts
4 → 12
Calls
4 calls:
39.0ms
(cbrt (atan2 x.im x.re))
37.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
35.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
143.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify68.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 4 (62.0ms)

IterNodesCost
0160405
1334373
2731371
31992371
45002369

prune322.0ms

Filtered
61 candidates to 51 candidates (83.6%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New59261
Fresh189
Picked101
Done011
Total611172

Merged error: 18.5b

Counts
72 → 11

localize34.0ms

Local error

Found 4 expressions with local error:

6.1b
(cbrt (atan2 x.im x.re))
27.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
27.4b
(sqrt (+ (* x.re x.re) (* x.im x.im)))
33.7b
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1 sqrt-prod
add-exp-log sqrt-div add-cbrt-cube add-log-exp
cbrt-prod
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
sin-sum pow1/3
Counts
4 → 49
Calls
4 calls:
1.0ms
(cbrt (atan2 x.im x.re))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
4.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
6.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

series256.0ms

Counts
4 → 12
Calls
4 calls:
42.0ms
(cbrt (atan2 x.im x.re))
34.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
37.0ms
(sqrt (+ (* x.re x.re) (* x.im x.im)))
142.0ms
(sin (+ (* (log (sqrt (+ (* x.re x.re) (* x.im x.im)))) y.im) (* (atan2 x.im x.re) y.re)))

simplify68.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 4 (62.0ms)

IterNodesCost
0160405
1334373
2731371
31992371
45002369

prune305.0ms

Filtered
61 candidates to 51 candidates (83.6%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New60161
Fresh189
Picked101
Done011
Total621072

Merged error: 18.5b

Counts
72 → 10

regimes319.0ms

Accuracy

66.2% (4.6b remaining)

Error of 23.8b against oracle of 19.1b and baseline of 32.9b

bsearch275.0ms

Steps
ItersRangePoint
8
4.7581553547983534e-189
4.705645763359602e-185
8.479128448291586e-189
10
-6.2720510697352396e-46
-1.4633507478050622e-62
-5.849570790092907e-48

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05469
15469

end0.0ms

sample3.9s

Algorithm
intervals
Results
1.6s2269×body1280valid
844.0ms7936×body80valid
713.0ms1464×body640valid
192.0ms571×body320valid
62.0ms38×body2560valid
55.0ms248×body160valid