Details

Time bar (total: 3.5s)

sample19.0ms

Algorithm
intervals
Results
9.0ms274×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: 26.6b

localize9.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* y.re y.re) (* y.im y.im))
0.2b
(- (* x.im y.re) (* x.re y.im))
26.0b
(/ (- (* 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)))

series157.0ms

Counts
3 → 9
Calls
3 calls:
28.0ms
(+ (* y.re y.re) (* y.im y.im))
35.0ms
(- (* x.im y.re) (* x.re y.im))
95.0ms
(/ (- (* x.im y.re) (* x.re y.im)) (+ (* y.re y.re) (* y.im y.im)))

simplify37.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0316555
11343496
25001481

prune191.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 12.8b

localize11.0ms

Local error

Found 4 expressions with local error:

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

rewrite42.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))
3.0ms
(- (* x.im y.re) (* x.re y.im))
24.0ms
(* (/ 1 (* (hypot y.re y.im) 1)) (/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im)))
7.0ms
(/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im))

series386.0ms

Counts
4 → 12
Calls
4 calls:
55.0ms
(/ 1 (* (hypot y.re y.im) 1))
35.0ms
(- (* x.im y.re) (* x.re y.im))
186.0ms
(* (/ 1 (* (hypot y.re y.im) 1)) (/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im)))
110.0ms
(/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im))

simplify65.0ms

Algorithm
egg-herbie
Counts
155 → 155
Iterations

Useful iterations: 2 (51.0ms)

IterNodesCost
05551207
123061003
25003995

prune327.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 4.5b

localize9.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ (/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im)) (hypot y.re y.im))
0.2b
(- (* x.im y.re) (* x.re y.im))
17.3b
(/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im))

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

series258.0ms

Counts
3 → 9
Calls
3 calls:
111.0ms
(/ (/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im)) (hypot y.re y.im))
37.0ms
(- (* x.im y.re) (* x.re y.im))
110.0ms
(/ (- (* x.im y.re) (* x.re y.im)) (hypot y.re y.im))

simplify50.0ms

Algorithm
egg-herbie
Counts
130 → 130
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
04511408
116591307
250011298

prune333.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 4.5b

localize13.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (/ (* x.im y.re) (hypot y.re y.im)) (hypot y.re y.im))
1.0b
(/ (/ (* x.re y.im) (hypot y.re y.im)) (hypot y.re y.im))
9.1b
(/ (* x.re y.im) (hypot y.re y.im))
12.6b
(/ (* x.im y.re) (hypot y.re y.im))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
72×times-frac
40×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
32×add-exp-log add-cbrt-cube
16×associate-/l*
14×cbrt-undiv div-exp
12×associate-/r* div-inv
pow1 expm1-log1p-u frac-2neg prod-exp clear-num cbrt-unprod log1p-expm1-u add-log-exp
associate-/l/
Counts
4 → 146
Calls
4 calls:
5.0ms
(/ (/ (* x.im y.re) (hypot y.re y.im)) (hypot y.re y.im))
5.0ms
(/ (/ (* x.re y.im) (hypot y.re y.im)) (hypot y.re y.im))
3.0ms
(/ (* x.re y.im) (hypot y.re y.im))
3.0ms
(/ (* x.im y.re) (hypot y.re y.im))

series283.0ms

Counts
4 → 12
Calls
4 calls:
72.0ms
(/ (/ (* x.im y.re) (hypot y.re y.im)) (hypot y.re y.im))
75.0ms
(/ (/ (* x.re y.im) (hypot y.re y.im)) (hypot y.re y.im))
67.0ms
(/ (* x.re y.im) (hypot y.re y.im))
68.0ms
(/ (* x.im y.re) (hypot y.re y.im))

simplify56.0ms

Algorithm
egg-herbie
Counts
158 → 158
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
04951158
121661010
25001996

prune379.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 0.9b

regimes182.0ms

Accuracy

52.8% (4.0b remaining)

Error of 4.8b against oracle of 0.8b and baseline of 9.3b

bsearch76.0ms

Steps
ItersRangePoint
8
4.474924955551132e-38
1.5214700919419666e-35
1.0382708421545201e-35
7
-1.1049075135714818e+81
-5.355145492118649e+78
-2.2616143508082277e+79

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03423
13623
23623

end0.0ms

sample511.0ms

Algorithm
intervals
Results
297.0ms8457×body80valid