Details

Time bar (total: 6.9s)

sample26.0ms

Algorithm
intervals
Results
6.0ms193×body80valid
5.0ms23×body2560valid
2.0ms15×body1280valid
2.0msbody5120valid
1.0msbody320valid
1.0msbody640valid
0.0msbody160valid

simplify7.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
01215
12215
22315
done2315

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 38.2b

localize13.0ms

Local error

Found 2 expressions with local error:

0.9b
(+ (sqrt (+ (* re re) (* im im))) re)
30.5b
(sqrt (+ (* re re) (* im im)))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
add-sqr-sqrt add-log-exp
pow1 add-cube-cbrt sqrt-prod
add-exp-log flip3-+ sqrt-div add-cbrt-cube flip-+
+-commutative rem-sqrt-square sqrt-pow1 pow1/2 sum-log distribute-lft-out
Counts
2 → 27
Calls
2 calls:
13.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series86.0ms

Counts
2 → 6
Calls
2 calls:
50.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify880.0ms

Counts
33 → 33
Iterations

Useful iterations: 4 (327.0ms)

IterNodesCost
059429
1143369
2331339
3758329
41786327
done5001327

prune106.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 19.0b

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
8.0b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
30.5b
(sqrt (+ (* re re) (* im im)))
30.5b
(sqrt (+ (* re re) (* im im)))

rewrite54.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
50×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
flip3-+ associate-*r* associate-*l* pow-prod-up flip-+ unswap-sqr
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
+-commutative pow2 pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 124
Calls
4 calls:
28.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
13.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series159.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
45.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
39.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.4s

Counts
136 → 136
Iterations

Useful iterations: 3 (465.0ms)

IterNodesCost
01333041
12651733
26891579
322861520
done50011520

prune284.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 19.0b

localize12.0ms

Local error

Found 4 expressions with local error:

1.1b
(- (sqrt (+ (* re re) (* im im))) re)
4.5b
(sqrt (* 2.0 (/ (+ (* im im) 0) (- (sqrt (+ (* re re) (* im im))) re))))
20.9b
(/ (+ (* im im) 0) (- (sqrt (+ (* re re) (* im im))) re))
30.5b
(sqrt (+ (* re re) (* im im)))

rewrite66.0ms

Algorithm
rewrite-expression-head
Rules
37×add-sqr-sqrt
26×*-un-lft-identity
18×times-frac
16×add-cube-cbrt
10×difference-of-squares
sqrt-prod
pow1
add-exp-log associate-/r* add-cbrt-cube add-log-exp
distribute-lft-out--
sqrt-pow1 sqrt-div associate-/l*
flip3-- flip3-+ pow1/2 associate-/r/ flip-- flip-+ associate-/l/
cbrt-undiv sub-neg rem-sqrt-square frac-2neg diff-log associate-*r/ div-exp pow-prod-down clear-num div-inv
Counts
4 → 85
Calls
4 calls:
18.0ms
(- (sqrt (+ (* re re) (* im im))) re)
17.0ms
(sqrt (* 2.0 (/ (+ (* im im) 0) (- (sqrt (+ (* re re) (* im im))) re))))
26.0ms
(/ (+ (* im im) 0) (- (sqrt (+ (* re re) (* im im))) re))
3.0ms
(sqrt (+ (* re re) (* im im)))

series356.0ms

Counts
4 → 12
Calls
4 calls:
51.0ms
(- (sqrt (+ (* re re) (* im im))) re)
194.0ms
(sqrt (* 2.0 (/ (+ (* im im) 0) (- (sqrt (+ (* re re) (* im im))) re))))
74.0ms
(/ (+ (* im im) 0) (- (sqrt (+ (* re re) (* im im))) re))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify529.0ms

Counts
97 → 97
Iterations

Useful iterations: done (525.0ms)

IterNodesCost
01741974
14061690
213671554
done50011533

prune301.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 13.8b

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (fabs im) (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re)))
1.1b
(- (sqrt (+ (* re re) (* im im))) re)
4.5b
(sqrt (* 2.0 (* (fabs im) (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re)))))
30.5b
(sqrt (+ (* re re) (* im im)))

rewrite113.0ms

Algorithm
rewrite-expression-head
Rules
38×add-sqr-sqrt
24×*-un-lft-identity associate-*r*
19×times-frac
16×add-cube-cbrt
13×pow1
add-exp-log add-cbrt-cube
sqrt-prod difference-of-squares
add-log-exp
sqrt-pow1 pow-prod-down distribute-lft-out--
sqrt-div associate-*r/ associate-*l*
flip3-- pow1/2 prod-exp associate-/r/ flip-- cbrt-unprod unswap-sqr
cbrt-undiv sub-neg rem-sqrt-square flip3-+ diff-log div-exp *-commutative flip-+ div-inv
Counts
4 → 86
Calls
4 calls:
48.0ms
(* (fabs im) (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re)))
18.0ms
(- (sqrt (+ (* re re) (* im im))) re)
41.0ms
(sqrt (* 2.0 (* (fabs im) (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re)))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series337.0ms

Counts
4 → 12
Calls
4 calls:
85.0ms
(* (fabs im) (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re)))
45.0ms
(- (sqrt (+ (* re re) (* im im))) re)
170.0ms
(sqrt (* 2.0 (* (fabs im) (/ (fabs im) (- (sqrt (+ (* re re) (* im im))) re)))))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify724.0ms

Counts
98 → 98
Iterations

Useful iterations: done (721.0ms)

IterNodesCost
01931756
14811589
218391435
done50001432

prune278.0ms

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 12.2b

regimes201.0ms

Accuracy

62.9% (9.8b remaining)

Error of 22.9b against oracle of 13.1b and baseline of 39.5b

bsearch142.0ms

Steps
ItersRangePoint
7
4.7789019538112153e+104
1.591151741636895e+106
1.5366724406791122e+106
7
7.991847353731723e-282
1.110810473879014e-279
1.2766285812733717e-281
2
-4.9541499614204095e-275
-4.29238249318267e-275
-4.540545293771823e-275
8
-5.294872751913314e+157
-4.107841816162241e+153
-1.3657760091869803e+154

simplify5.0ms

Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
052100
167100
done67100

end0.0ms

sample710.0ms

Algorithm
intervals
Results
209.0ms6020×body80valid
148.0ms694×body2560valid
81.0ms489×body1280valid
77.0ms294×body5120valid
37.0ms283×body640valid
16.0ms149×body320valid
5.0ms71×body160valid