Details

Time bar (total: 3.7s)

sample19.0ms

Algorithm
intervals
Results
9.0ms265×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: 24.6b

localize9.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* y.re y.re) (* y.im y.im))
1.0b
(+ (* x.re y.re) (* x.im y.im))
24.2b
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

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

series143.0ms

Counts
3 → 9
Calls
3 calls:
27.0ms
(+ (* y.re y.re) (* y.im y.im))
34.0ms
(+ (* x.re y.re) (* x.im y.im))
82.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

simplify138.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0290532
11199475
24872462
35001462

prune210.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 13.7b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1 (* (hypot y.re y.im) 1))
0.3b
(* (/ 1 (* (hypot y.re y.im) 1)) (/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1)))
0.5b
(fma x.re y.re (* x.im y.im))
13.4b
(/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1))

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
170×add-exp-log
92×prod-exp
63×div-exp
50×add-cbrt-cube
41×1-exp
17×cbrt-unprod
16×cbrt-undiv
15×rec-exp
14×add-sqr-sqrt
12×add-cube-cbrt *-un-lft-identity times-frac
pow1
associate-*r* associate-*l*
associate-/l*
expm1-log1p-u log1p-expm1-u div-inv add-log-exp
pow-flip frac-2neg pow-prod-down clear-num associate-/r*
frac-times associate-*r/ associate-*l/ *-commutative fma-udef inv-pow unswap-sqr
Counts
4 → 145
Calls
4 calls:
4.0ms
(/ 1 (* (hypot y.re y.im) 1))
21.0ms
(* (/ 1 (* (hypot y.re y.im) 1)) (/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1)))
0.0ms
(fma x.re y.re (* x.im y.im))
3.0ms
(/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1))

series381.0ms

Counts
4 → 12
Calls
4 calls:
55.0ms
(/ 1 (* (hypot y.re y.im) 1))
179.0ms
(* (/ 1 (* (hypot y.re y.im) 1)) (/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1)))
36.0ms
(fma x.re y.re (* x.im y.im))
111.0ms
(/ (fma x.re y.re (* x.im y.im)) (* (hypot y.re y.im) 1))

simplify44.0ms

Algorithm
egg-herbie
Counts
157 → 157
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
04861191
11654892
25002884

prune278.0ms

Pruning

13 alts after pruning (13 fresh and 0 done)

Merged error: 4.3b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot y.re y.im)
0.1b
(/ (/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im)) (* (hypot y.re y.im) 1))
0.5b
(fma x.re y.re (* x.im y.im))
13.4b
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
40×times-frac
26×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
23×add-exp-log
18×add-cbrt-cube
16×associate-/l*
10×div-exp
cbrt-undiv
pow1 expm1-log1p-u prod-exp associate-/r* log1p-expm1-u div-inv add-log-exp
frac-2neg 1-exp clear-num cbrt-unprod
hypot-udef fma-udef associate-/l/
Counts
4 → 99
Calls
4 calls:
0.0ms
(hypot y.re y.im)
9.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))

series319.0ms

Counts
4 → 12
Calls
4 calls:
46.0ms
(hypot y.re y.im)
124.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))
111.0ms
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))

simplify77.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 3 (68.0ms)

IterNodesCost
0308794
11149701
23275701
35001693

prune517.0ms

Pruning

13 alts after pruning (13 fresh and 0 done)

Merged error: 4.2b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1 (hypot y.re y.im))
0.1b
(/ (* (fma x.re y.re (* x.im y.im)) (/ 1 (hypot y.re y.im))) (* (hypot y.re y.im) 1))
0.5b
(fma x.re y.re (* x.im y.im))
13.5b
(* (fma x.re y.re (* x.im y.im)) (/ 1 (hypot y.re y.im)))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
67×add-exp-log
32×add-cbrt-cube
27×add-sqr-sqrt
26×prod-exp
25×div-exp
21×*-un-lft-identity times-frac
20×add-cube-cbrt
13×associate-*r*
10×cbrt-undiv 1-exp
cbrt-unprod
pow1
rec-exp
expm1-log1p-u associate-/r* log1p-expm1-u associate-/l* add-log-exp
associate-*l* div-inv unswap-sqr
frac-2neg associate-*r/ clear-num un-div-inv associate-/l/
pow-flip pow-prod-down *-commutative fma-udef inv-pow
Counts
4 → 119
Calls
4 calls:
2.0ms
(/ 1 (hypot y.re y.im))
7.0ms
(/ (* (fma x.re y.re (* x.im y.im)) (/ 1 (hypot y.re y.im))) (* (hypot y.re y.im) 1))
0.0ms
(fma x.re y.re (* x.im y.im))
8.0ms
(* (fma x.re y.re (* x.im y.im)) (/ 1 (hypot y.re y.im)))

series323.0ms

Counts
4 → 12
Calls
4 calls:
55.0ms
(/ 1 (hypot y.re y.im))
114.0ms
(/ (* (fma x.re y.re (* x.im y.im)) (/ 1 (hypot y.re y.im))) (* (hypot y.re y.im) 1))
37.0ms
(fma x.re y.re (* x.im y.im))
117.0ms
(* (fma x.re y.re (* x.im y.im)) (/ 1 (hypot y.re y.im)))

simplify49.0ms

Algorithm
egg-herbie
Counts
131 → 131
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
0394872
11636690
25001663

prune251.0ms

Pruning

13 alts after pruning (12 fresh and 1 done)

Merged error: 4.2b

regimes227.0ms

Accuracy

35.5% (7.0b remaining)

Error of 12.7b against oracle of 5.7b and baseline of 16.5b

bsearch67.0ms

Steps
ItersRangePoint
5
2.6545994669624432e+182
1.0129075260036237e+183
5.2660357604755783e+182
9
-2.963931757502914e+119
-3.0087443311191178e+113
-1.0970461090118266e+117

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
02915
13215
23215

end0.0ms

sample495.0ms

Algorithm
intervals
Results
287.0ms8481×body80valid