Details

Time bar (total: 18.8s)

sample26.0ms

Algorithm
intervals
Results
12.0ms271×body80valid

simplify16.0ms

Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
01115
11713
22113
done2113

prune22.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 24.1b

localize12.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* y.re y.re) (* y.im y.im))
0.8b
(+ (* x.re y.re) (* x.im y.im))
23.7b
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

rewrite75.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:
14.0ms
(+ (* y.re y.re) (* y.im y.im))
9.0ms
(+ (* x.re y.re) (* x.im y.im))
50.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

series206.0ms

Counts
3 → 9
Calls
3 calls:
47.0ms
(+ (* y.re y.re) (* y.im y.im))
48.0ms
(+ (* x.re y.re) (* x.im y.im))
111.0ms
(/ (+ (* x.re y.re) (* x.im y.im)) (+ (* y.re y.re) (* y.im y.im)))

simplify2.2s

Counts
70 → 70
Iterations

Useful iterations: 2 (285.0ms)

IterNodesCost
01051154
1288969
2955867
32981867
done5001867

prune275.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 14.0b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1 (hypot y.re y.im))
0.2b
(* (/ 1 (hypot y.re y.im)) (/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im)))
0.5b
(fma x.re y.re (* x.im y.im))
13.7b
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))

rewrite84.0ms

Algorithm
rewrite-expression-head
Rules
51×add-sqr-sqrt
43×times-frac
36×*-un-lft-identity
34×add-cube-cbrt
32×add-exp-log
20×add-cbrt-cube
13×associate-*r* associate-*l*
11×div-exp
prod-exp
pow1
cbrt-undiv associate-/r* associate-/l* unswap-sqr
expm1-log1p-u cbrt-unprod log1p-expm1-u div-inv add-log-exp
rec-exp 1-exp
frac-2neg clear-num
frac-times pow-flip associate-*r/ pow-prod-down associate-*l/ *-commutative fma-udef inv-pow
Counts
4 → 130
Calls
4 calls:
12.0ms
(/ 1 (hypot y.re y.im))
49.0ms
(* (/ 1 (hypot y.re y.im)) (/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im)))
1.0ms
(fma x.re y.re (* x.im y.im))
14.0ms
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))

series586.0ms

Counts
4 → 12
Calls
4 calls:
64.0ms
(/ 1 (hypot y.re y.im))
271.0ms
(* (/ 1 (hypot y.re y.im)) (/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im)))
61.0ms
(fma x.re y.re (* x.im y.im))
189.0ms
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))

simplify3.7s

Counts
142 → 142
Iterations

Useful iterations: done (3.7s)

IterNodesCost
01542192
13512009
210891759
339521759
done50001726

prune590.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 5.9b

localize20.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))
0.5b
(fma x.re y.re (* x.im y.im))
13.7b
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))

rewrite22.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
cbrt-undiv div-exp
pow1 expm1-log1p-u log1p-expm1-u add-log-exp
frac-2neg clear-num
fma-udef associate-/l/
Counts
3 → 111
Calls
3 calls:
11.0ms
(/ (/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im)) (hypot y.re y.im))
0.0ms
(fma x.re y.re (* x.im y.im))
5.0ms
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))

series370.0ms

Counts
3 → 9
Calls
3 calls:
175.0ms
(/ (/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im)) (hypot y.re y.im))
52.0ms
(fma x.re y.re (* x.im y.im))
144.0ms
(/ (fma x.re y.re (* x.im y.im)) (hypot y.re y.im))

simplify2.2s

Counts
120 → 120
Iterations

Useful iterations: done (2.1s)

IterNodesCost
01612484
13222423
27032246
320302192
done50002130

prune488.0ms

Pruning

13 alts after pruning (12 fresh and 1 done)

Merged error: 5.9b

localize14.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ 1 (/ (hypot y.re y.im) (fma x.re y.re (* x.im y.im))))
0.2b
(* (/ 1 (hypot y.re y.im)) (/ 1 (/ (hypot y.re y.im) (fma x.re y.re (* x.im y.im)))))
0.5b
(fma x.re y.re (* x.im y.im))
13.8b
(/ (hypot y.re y.im) (fma x.re y.re (* x.im y.im)))

rewrite89.0ms

Algorithm
rewrite-expression-head
Rules
187×times-frac
143×add-sqr-sqrt
107×*-un-lft-identity
100×add-exp-log
96×add-cube-cbrt
50×div-exp
44×associate-*r*
32×add-cbrt-cube
28×prod-exp
17×rec-exp 1-exp
16×associate-/r*
15×unswap-sqr
13×cbrt-undiv associate-*l*
11×div-inv
pow1
cbrt-unprod associate-/l*
expm1-log1p-u log1p-expm1-u add-log-exp
pow-flip pow-prod-down inv-pow
frac-2neg clear-num associate-/r/
frac-times associate-*r/ associate-*l/ un-div-inv *-commutative fma-udef
Counts
4 → 240
Calls
4 calls:
11.0ms
(/ 1 (/ (hypot y.re y.im) (fma x.re y.re (* x.im y.im))))
57.0ms
(* (/ 1 (hypot y.re y.im)) (/ 1 (/ (hypot y.re y.im) (fma x.re y.re (* x.im y.im)))))
0.0ms
(fma x.re y.re (* x.im y.im))
5.0ms
(/ (hypot y.re y.im) (fma x.re y.re (* x.im y.im)))

series627.0ms

Counts
4 → 12
Calls
4 calls:
197.0ms
(/ 1 (/ (hypot y.re y.im) (fma x.re y.re (* x.im y.im))))
259.0ms
(* (/ 1 (hypot y.re y.im)) (/ 1 (/ (hypot y.re y.im) (fma x.re y.re (* x.im y.im)))))
51.0ms
(fma x.re y.re (* x.im y.im))
119.0ms
(/ (hypot y.re y.im) (fma x.re y.re (* x.im y.im)))

simplify4.1s

Counts
252 → 252
Iterations

Useful iterations: done (4.0s)

IterNodesCost
02925363
17224687
215354048
343114030
done50013953

prune888.0ms

Pruning

13 alts after pruning (11 fresh and 2 done)

Merged error: 5.9b

regimes360.0ms

Accuracy

39% (6.8b remaining)

Error of 12.9b against oracle of 6.0b and baseline of 17.2b

bsearch126.0ms

Steps
ItersRangePoint
6
5.4068805428593804e+166
7.208568163524586e+167
1.4718796069697552e+167
7
-6.100795518743097e+143
-1.2728136642635444e+142
-6.168252273035428e+142

simplify8.0ms

Iterations

Useful iterations: done (8.0ms)

IterNodesCost
02448
13139
done3133

end0.0ms

sample1.8s

Algorithm
intervals
Results
1.3s8458×body80valid