Details

Time bar (total: 13.9s)

sample75.0ms

Algorithm
intervals
Results
10.0ms186×body80valid
6.0ms23×body2560valid
3.0ms10×body5120valid
3.0ms15×body1280valid
2.0ms11×body640valid
1.0msbody320valid
0.0msbody160valid

simplify30.0ms

Counts
1 → 1

prune45.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 38.8b

localize16.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.7b
(- (sqrt (+ (* re re) (* im im))) re)
28.7b
(sqrt (+ (* re re) (* im im)))

rewrite136.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1
*-un-lft-identity
sqrt-prod add-log-exp
add-cube-cbrt sqrt-div
add-exp-log sqrt-pow1 add-cbrt-cube
flip3-- pow1/2 associate-*r/ flip-- difference-of-squares
sub-neg rem-sqrt-square flip3-+ diff-log pow-prod-down flip-+ distribute-lft-out--
Counts
3 → 43
Calls
3 calls:
69.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
51.0ms
(- (sqrt (+ (* re re) (* im im))) re)
11.0ms
(sqrt (+ (* re re) (* im im)))

series372.0ms

Counts
3 → 9
Calls
3 calls:
221.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
70.0ms
(- (sqrt (+ (* re re) (* im im))) re)
80.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.3s

Counts
52 → 52

prune230.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 16.7b

localize16.0ms

Local error

Found 4 expressions with local error:

0.3b
(+ re (sqrt (+ (* re re) (* im im))))
4.4b
(sqrt (* 2.0 (/ (pow im 2) (+ re (sqrt (+ (* re re) (* im im)))))))
22.2b
(/ (pow im 2) (+ re (sqrt (+ (* re re) (* im im)))))
28.7b
(sqrt (+ (* re re) (* im im)))

rewrite135.0ms

Algorithm
rewrite-expression-head
Rules
44×*-un-lft-identity
32×times-frac
25×add-sqr-sqrt
24×add-cube-cbrt
15×unpow-prod-down
10×distribute-lft-out
add-exp-log
pow1 associate-/l*
add-cbrt-cube add-log-exp
unpow2 sqr-pow
associate-/r* sqrt-prod
sqrt-pow1 flip3-+ sqrt-div div-exp flip-+
pow1/2 associate-/r/
cbrt-undiv +-commutative pow-to-exp rem-sqrt-square frac-2neg associate-*r/ pow-prod-down pow-exp clear-num sum-log div-inv
Counts
4 → 99
Calls
4 calls:
33.0ms
(+ re (sqrt (+ (* re re) (* im im))))
40.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ re (sqrt (+ (* re re) (* im im)))))))
47.0ms
(/ (pow im 2) (+ re (sqrt (+ (* re re) (* im im)))))
8.0ms
(sqrt (+ (* re re) (* im im)))

series563.0ms

Counts
4 → 12
Calls
4 calls:
84.0ms
(+ re (sqrt (+ (* re re) (* im im))))
333.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ re (sqrt (+ (* re re) (* im im)))))))
100.0ms
(/ (pow im 2) (+ re (sqrt (+ (* re re) (* im im)))))
46.0ms
(sqrt (+ (* re re) (* im im)))

simplify833.0ms

Counts
111 → 111

prune400.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 6.2b

localize18.0ms

Local error

Found 4 expressions with local error:

0.4b
(* (/ im (sqrt (+ re (sqrt (+ (* re re) (* im im)))))) (/ im (sqrt (+ re (sqrt (+ (* re re) (* im im)))))))
4.4b
(sqrt (* 2.0 (* (/ im (sqrt (+ re (sqrt (+ (* re re) (* im im)))))) (/ im (sqrt (+ re (sqrt (+ (* re re) (* im im)))))))))
28.7b
(sqrt (+ (* re re) (* im im)))
28.7b
(sqrt (+ (* re re) (* im im)))

rewrite526.0ms

Algorithm
rewrite-expression-head
Rules
120×times-frac
114×add-sqr-sqrt
112×*-un-lft-identity
79×sqrt-prod
70×add-cube-cbrt
39×swap-sqr
27×associate-*r* associate-*l*
19×pow1
18×distribute-lft-out
16×add-exp-log add-cbrt-cube
15×sqrt-div
unswap-sqr
associate-/r/
flip3-+ flip-+
sqrt-pow1 associate-*r/
cbrt-undiv div-exp pow-prod-down prod-exp cbrt-unprod div-inv add-log-exp
pow1/2
frac-times rem-sqrt-square associate-*l/
pow2 pow-plus pow-sqr *-commutative pow-prod-up
Counts
4 → 171
Calls
4 calls:
299.0ms
(* (/ im (sqrt (+ re (sqrt (+ (* re re) (* im im)))))) (/ im (sqrt (+ re (sqrt (+ (* re re) (* im im)))))))
191.0ms
(sqrt (* 2.0 (* (/ im (sqrt (+ re (sqrt (+ (* re re) (* im im)))))) (/ im (sqrt (+ re (sqrt (+ (* re re) (* im im)))))))))
8.0ms
(sqrt (+ (* re re) (* im im)))
8.0ms
(sqrt (+ (* re re) (* im im)))

series545.0ms

Counts
4 → 12
Calls
4 calls:
97.0ms
(* (/ im (sqrt (+ re (sqrt (+ (* re re) (* im im)))))) (/ im (sqrt (+ re (sqrt (+ (* re re) (* im im)))))))
315.0ms
(sqrt (* 2.0 (* (/ im (sqrt (+ re (sqrt (+ (* re re) (* im im)))))) (/ im (sqrt (+ re (sqrt (+ (* re re) (* im im)))))))))
66.0ms
(sqrt (+ (* re re) (* im im)))
67.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.4s

Counts
183 → 183

prune751.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 3.7b

localize27.0ms

Local error

Found 4 expressions with local error:

0.3b
(+ re (sqrt (+ (* re re) (* im im))))
0.3b
(/ im (sqrt (+ re (sqrt (+ (* re re) (* im im))))))
0.3b
(* (sqrt 2.0) (fabs (/ im (sqrt (+ re (sqrt (+ (* re re) (* im im))))))))
28.7b
(sqrt (+ (* re re) (* im im)))

rewrite94.0ms

Algorithm
rewrite-expression-head
Rules
34×*-un-lft-identity
29×add-sqr-sqrt
24×add-cube-cbrt
23×sqrt-prod
21×times-frac
add-exp-log add-cbrt-cube
pow1 associate-/r*
associate-*l* add-log-exp
distribute-lft-out
sqrt-div
flip3-+ associate-*r* flip-+ associate-/l*
associate-/r/ unswap-sqr
cbrt-undiv +-commutative rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 div-exp pow-prod-down prod-exp clear-num sum-log *-commutative cbrt-unprod div-inv
Counts
4 → 94
Calls
4 calls:
19.0ms
(+ re (sqrt (+ (* re re) (* im im))))
50.0ms
(/ im (sqrt (+ re (sqrt (+ (* re re) (* im im))))))
10.0ms
(* (sqrt 2.0) (fabs (/ im (sqrt (+ re (sqrt (+ (* re re) (* im im))))))))
8.0ms
(sqrt (+ (* re re) (* im im)))

series431.0ms

Counts
4 → 12
Calls
4 calls:
83.0ms
(+ re (sqrt (+ (* re re) (* im im))))
223.0ms
(/ im (sqrt (+ re (sqrt (+ (* re re) (* im im))))))
50.0ms
(* (sqrt 2.0) (fabs (/ im (sqrt (+ re (sqrt (+ (* re re) (* im im))))))))
75.0ms
(sqrt (+ (* re re) (* im im)))

simplify756.0ms

Counts
106 → 106

prune457.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 0.5b

regimes240.0ms

Accuracy

44.8% (20.3b remaining)

Error of 20.7b against oracle of 0.4b and baseline of 37.1b

bsearch502.0ms

Steps
ItersRangePoint
10
1.4190458025585715e+66
1.9402728194738957e+76
3.5418578722039635e+75
8
-2.9123255016514252e-301
-8.30552514165335e-306
-1.151206757702833e-304
8
-3.9127510711405147e-202
-1.2433787460570118e-205
-5.2598057414578124e-204
8
-1.7616710801607817e-101
-1.9474418703952626e-105
-1.5786645195331458e-101
5
-7.43286669802599e-42
-2.3963961059944308e-42
-5.2018577087772036e-42
10
-31.62993370098301
-1.492940796143681e-10
-1.6857820947978318e-10

simplify1.6s

end0.0ms

sample2.4s

Algorithm
intervals
Results
854.0ms687×body2560valid
619.0ms5952×body80valid
262.0ms508×body1280valid
173.0ms327×body5120valid
83.0ms163×body320valid
81.0ms285×body640valid
11.0ms78×body160valid