Details

Time bar (total: 3.5s)

sample21.0ms

Algorithm
intervals
Results
10.0ms270×body80valid

simplify12.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0217
1407
2567
3767
4907
5947
6947

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 21.8b

localize10.0ms

Local error

Found 3 expressions with local error:

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

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
times-frac
add-log-exp
add-exp-log add-cbrt-cube
pow1 expm1-log1p-u associate-/r* log1p-expm1-u associate-/l*
flip3-- flip3-+ associate-/r/ flip-- flip-+ associate-/l/
cbrt-undiv +-commutative sub-neg fma-def frac-2neg fma-neg diff-log div-sub div-exp prod-diff clear-num sum-log div-inv
Counts
3 → 64
Calls
3 calls:
3.0ms
(+ (* y.re y.re) (* y.im y.im))
3.0ms
(- (* x.im y.re) (* x.re y.im))
10.0ms
(/ (- (* x.im y.re) (* x.re y.im)) (+ (* y.re y.re) (* y.im y.im)))

series152.0ms

Counts
3 → 9
Calls
3 calls:
27.0ms
(+ (* y.re y.re) (* y.im y.im))
39.0ms
(- (* x.im y.re) (* x.re y.im))
86.0ms
(/ (- (* x.im y.re) (* x.re y.im)) (+ (* y.re y.re) (* y.im y.im)))

simplify39.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0316555
11343496
25001481

prune203.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 10.7b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1 (* (hypot y.re y.im) 1))
0.2b
(* (/ 1 (* (hypot y.re y.im) 1)) (/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im)))
0.5b
(- (* x.im y.re) (* x.re y.im))
12.6b
(/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im))

rewrite43.0ms

Algorithm
rewrite-expression-head
Rules
83×add-exp-log
38×prod-exp
32×add-cbrt-cube
29×div-exp
28×add-sqr-sqrt
25×times-frac
23×add-cube-cbrt *-un-lft-identity
18×1-exp
13×associate-*r*
10×cbrt-undiv
pow1 rec-exp cbrt-unprod
associate-*l*
associate-/l* add-log-exp
expm1-log1p-u associate-/r* log1p-expm1-u div-inv
flip3-- pow-flip frac-2neg pow-prod-down clear-num flip-- associate-/l/ unswap-sqr
frac-times sub-neg fma-neg diff-log div-sub associate-*r/ prod-diff associate-*l/ *-commutative inv-pow
Counts
4 → 143
Calls
4 calls:
4.0ms
(/ 1 (* (hypot y.re y.im) 1))
24.0ms
(* (/ 1 (* (hypot y.re y.im) 1)) (/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im)))
3.0ms
(- (* x.im y.re) (* x.re y.im))
7.0ms
(/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im))

series381.0ms

Counts
4 → 12
Calls
4 calls:
53.0ms
(/ 1 (* (hypot y.re y.im) 1))
179.0ms
(* (/ 1 (* (hypot y.re y.im) 1)) (/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im)))
35.0ms
(- (* x.im y.re) (* x.re y.im))
114.0ms
(/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im))

simplify62.0ms

Algorithm
egg-herbie
Counts
155 → 155
Iterations

Useful iterations: 2 (50.0ms)

IterNodesCost
05551207
123061003
25003995

prune330.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 4.3b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(/ (/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im)) (hypot y.re y.im))
0.5b
(- (* x.im y.re) (* x.re y.im))
12.6b
(/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
84×times-frac
53×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
16×associate-/l*
10×add-exp-log add-cbrt-cube
associate-/r* div-inv
add-log-exp
cbrt-undiv div-exp
pow1 expm1-log1p-u div-sub log1p-expm1-u associate-/l/
flip3-- frac-2neg clear-num flip--
sub-neg fma-neg diff-log prod-diff
Counts
3 → 121
Calls
3 calls:
9.0ms
(/ (/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im)) (hypot y.re y.im))
3.0ms
(- (* x.im y.re) (* x.re y.im))
7.0ms
(/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im))

series266.0ms

Counts
3 → 9
Calls
3 calls:
114.0ms
(/ (/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im)) (hypot y.re y.im))
35.0ms
(- (* x.im y.re) (* x.re y.im))
116.0ms
(/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im))

simplify53.0ms

Algorithm
egg-herbie
Counts
130 → 130
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
04511408
116591307
250011298

prune348.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 4.3b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1 (hypot y.re y.im))
0.0b
(/ (* (- (* x.im y.re) (* x.re y.im)) (/ 1 (hypot y.re y.im))) (hypot y.re y.im))
0.5b
(- (* x.im y.re) (* x.re y.im))
12.6b
(* (- (* x.im y.re) (* x.re y.im)) (/ 1 (hypot y.re y.im)))

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
32×add-exp-log
29×add-sqr-sqrt
23×*-un-lft-identity times-frac
22×add-cube-cbrt
20×add-cbrt-cube
13×associate-*r*
11×div-exp
prod-exp
pow1
cbrt-undiv associate-/r* associate-/l/ add-log-exp
flip3-- flip--
expm1-log1p-u frac-times associate-*l/ cbrt-unprod log1p-expm1-u associate-/l*
rec-exp 1-exp associate-*l* div-inv unswap-sqr
frac-2neg associate-*r/ clear-num un-div-inv
sub-neg pow-flip fma-neg diff-log prod-diff pow-prod-down *-commutative inv-pow
Counts
4 → 124
Calls
4 calls:
2.0ms
(/ 1 (hypot y.re y.im))
9.0ms
(/ (* (- (* x.im y.re) (* x.re y.im)) (/ 1 (hypot y.re y.im))) (hypot y.re y.im))
3.0ms
(- (* x.im y.re) (* x.re y.im))
14.0ms
(* (- (* x.im y.re) (* x.re y.im)) (/ 1 (hypot y.re y.im)))

series325.0ms

Counts
4 → 12
Calls
4 calls:
57.0ms
(/ 1 (hypot y.re y.im))
116.0ms
(/ (* (- (* x.im y.re) (* x.re y.im)) (/ 1 (hypot y.re y.im))) (hypot y.re y.im))
35.0ms
(- (* x.im y.re) (* x.re y.im))
117.0ms
(* (- (* x.im y.re) (* x.re y.im)) (/ 1 (hypot y.re y.im)))

simplify55.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0419955
11966794
25001763

prune304.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 4.3b

regimes183.0ms

Accuracy

16% (9.9b remaining)

Error of 14.6b against oracle of 4.8b and baseline of 16.5b

bsearch45.0ms

Steps
ItersRangePoint
9
6.7885585141402705e+103
7.826509235711787e+111
7.198676858313622e+111

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02712
13312
23712
34812
45012
55012

end0.0ms

sample538.0ms

Algorithm
intervals
Results
328.0ms8454×body80valid