Details

Time bar (total: 3.8s)

sample31.0ms

Algorithm
intervals
Results
21.0ms268×body80valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0177
1217
2217

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 26.3b

localize9.0ms

Local error

Found 2 expressions with local error:

0.3b
(+ (* x.re y.re) (* x.im y.im))
25.8b
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

rewrite14.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
flip3-+ associate-/r* flip-+ associate-/l*
pow1 expm1-log1p-u associate-/r/ log1p-expm1-u associate-/l/
cbrt-undiv +-commutative fma-def frac-2neg div-exp clear-num sum-log div-inv
Counts
2 → 47
Calls
2 calls:
2.0ms
(+ (* x.re y.re) (* x.im y.im))
11.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

series105.0ms

Counts
2 → 6
Calls
2 calls:
29.0ms
(+ (* x.re y.re) (* x.im y.im))
76.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

simplify82.0ms

Algorithm
egg-herbie
Counts
53 → 53
Iterations

Useful iterations: 2 (22.0ms)

IterNodesCost
0244458
1872411
23164403
35001403

prune154.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 16.7b

localize10.0ms

Local error

Found 3 expressions with local error:

0.3b
(fma x.re y.re (* x.im y.im))
0.3b
(* (/ 1 (* (hypot y.re y.im) 1)) (/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1)))
16.4b
(/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
154×add-exp-log
86×prod-exp
57×div-exp
44×add-cbrt-cube
35×1-exp
16×cbrt-unprod
14×cbrt-undiv
12×rec-exp
11×add-sqr-sqrt
add-cube-cbrt *-un-lft-identity times-frac
associate-*r* associate-*l*
pow1
expm1-log1p-u log1p-expm1-u div-inv associate-/l* add-log-exp
frac-times frac-2neg associate-*r/ pow-prod-down associate-*l/ clear-num associate-/r* *-commutative fma-udef unswap-sqr
Counts
3 → 112
Calls
3 calls:
0.0ms
(fma x.re y.re (* x.im y.im))
20.0ms
(* (/ 1 (* (hypot y.re y.im) 1)) (/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1)))
5.0ms
(/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1))

series327.0ms

Counts
3 → 9
Calls
3 calls:
38.0ms
(fma x.re y.re (* x.im y.im))
178.0ms
(* (/ 1 (* (hypot y.re y.im) 1)) (/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1)))
110.0ms
(/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1))

simplify43.0ms

Algorithm
egg-herbie
Counts
121 → 121
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
04721079
11607796
25001794

prune208.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 6.7b

localize9.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ (/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im)) (* (hypot y.re y.im) 1))
0.3b
(fma x.re y.re (* x.im y.im))
16.4b
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
40×times-frac
25×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
22×add-exp-log
17×add-cbrt-cube
16×associate-/l*
10×div-exp
cbrt-undiv
prod-exp associate-/r* div-inv
pow1 expm1-log1p-u log1p-expm1-u add-log-exp
frac-2neg 1-exp clear-num cbrt-unprod
fma-udef associate-/l/
Counts
3 → 89
Calls
3 calls:
6.0ms
(/ (/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im)) (* (hypot y.re y.im) 1))
0.0ms
(fma x.re y.re (* x.im y.im))
2.0ms
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))

series255.0ms

Counts
3 → 9
Calls
3 calls:
110.0ms
(/ (/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im)) (* (hypot y.re y.im) 1))
38.0ms
(fma x.re y.re (* x.im y.im))
107.0ms
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))

simplify74.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 3 (66.0ms)

IterNodesCost
0297767
11133677
23251677
35001670

prune252.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 6.7b

localize13.0ms

Local error

Found 4 expressions with local error:

0.3b
(fma x.re y.re (* x.im y.im))
0.3b
(* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (/ (* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im))) (hypot y.re y.im)))
7.4b
(/ (* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im))) (hypot y.re y.im))
9.2b
(* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im)))

rewrite83.0ms

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt
20×add-exp-log associate-*l* add-cbrt-cube
16×sqrt-prod
15×add-cube-cbrt *-un-lft-identity
12×times-frac
10×associate-*r*
pow1
prod-exp cbrt-unprod
cbrt-undiv expm1-log1p-u sqrt-div div-exp log1p-expm1-u div-inv add-log-exp unswap-sqr
associate-*l/ associate-/r* fma-udef
pow-prod-down *-commutative
distribute-rgt-in frac-times frac-2neg distribute-lft-in associate-*r/ clear-num associate-/l/ associate-/l*
Counts
4 → 104
Calls
4 calls:
0.0ms
(fma x.re y.re (* x.im y.im))
49.0ms
(* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (/ (* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im))) (hypot y.re y.im)))
15.0ms
(/ (* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im))) (hypot y.re y.im))
15.0ms
(* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im)))

series652.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(fma x.re y.re (* x.im y.im))
195.0ms
(* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (/ (* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im))) (hypot y.re y.im)))
253.0ms
(/ (* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im))) (hypot y.re y.im))
166.0ms
(* (sqrt (/ 1 (* (hypot y.re y.im) 1))) (fma x.re y.re (* x.im y.im)))

simplify60.0ms

Algorithm
egg-herbie
Counts
116 → 116
Iterations

Useful iterations: 2 (48.0ms)

IterNodesCost
04041276
120761059
250011017

prune299.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 6.7b

regimes175.0ms

Accuracy

36.3% (7.0b remaining)

Error of 13.0b against oracle of 6.0b and baseline of 17.0b

bsearch63.0ms

Steps
ItersRangePoint
6
1.6842624621209925e+118
8.576113840527978e+118
7.643933836198129e+118
7
-2.0391789022290126e+127
-3.2664701214032027e+125
-4.15437883947267e+126

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02714
13014
23014

end0.0ms

sample830.0ms

Algorithm
intervals
Results
621.0ms8488×body80valid