Details

Time bar (total: 3.7s)

sample25.0ms

Algorithm
intervals
Results
7.0ms207×body80valid
4.0ms18×body2560valid
3.0ms10×body5120valid
2.0ms13×body1280valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify8.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 37.8b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.3b
(- (sqrt (+ (* re re) (* im im))) re)
30.8b
(sqrt (+ (* re re) (* im im)))

rewrite35.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:
12.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
18.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series252.0ms

Counts
3 → 9
Calls
3 calls:
168.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
44.0ms
(- (sqrt (+ (* re re) (* im im))) re)
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify78.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 3 (70.0ms)

IterNodesCost
0232382
1768356
22506346
35001344

prune142.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 17.5b

localize13.0ms

Local error

Found 4 expressions with local error:

0.8b
(+ (sqrt (+ (* re re) (* im im))) re)
5.2b
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
23.4b
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
30.8b
(sqrt (+ (* re re) (* im im)))

rewrite57.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:
14.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
13.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
23.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
4.0ms
(sqrt (+ (* re re) (* im im)))

series338.0ms

Counts
4 → 12
Calls
4 calls:
44.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
192.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
66.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify50.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
04171078
11461985
25001978

prune288.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 5.9b

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ (sqrt (* 2.0 (pow im 2))) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
0.8b
(+ (sqrt (+ (* re re) (* im im))) re)
30.4b
(sqrt (* 2.0 (pow im 2)))
30.8b
(sqrt (+ (* re re) (* im im)))

rewrite47.0ms

Algorithm
rewrite-expression-head
Rules
35×*-un-lft-identity
32×sqrt-prod
28×times-frac
24×add-sqr-sqrt
23×add-cube-cbrt
associate-/r*
pow1 add-exp-log add-cbrt-cube distribute-lft-out add-log-exp
sqrt-div associate-/l*
flip3-+ flip-+
sqrt-pow1 pow1/2 associate-/r/
cbrt-undiv +-commutative rem-sqrt-square sqrt-undiv frac-2neg div-exp clear-num sum-log div-inv
Counts
4 → 91
Calls
4 calls:
22.0ms
(/ (sqrt (* 2.0 (pow im 2))) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
16.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
2.0ms
(sqrt (* 2.0 (pow im 2)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series318.0ms

Counts
4 → 12
Calls
4 calls:
201.0ms
(/ (sqrt (* 2.0 (pow im 2))) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
44.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
38.0ms
(sqrt (* 2.0 (pow im 2)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify44.0ms

Algorithm
egg-herbie
Counts
103 → 103
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
03871210
113251133
250021103

prune311.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 2.4b

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ (* (sqrt 2.0) (fabs im)) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
0.4b
(* (sqrt 2.0) (fabs im))
0.8b
(+ (sqrt (+ (* re re) (* im im))) re)
30.8b
(sqrt (+ (* re re) (* im im)))

rewrite48.0ms

Algorithm
rewrite-expression-head
Rules
18×*-un-lft-identity
17×add-sqr-sqrt
15×sqrt-prod
12×add-cube-cbrt
11×add-exp-log add-cbrt-cube
pow1 times-frac associate-/r*
associate-*l* add-log-exp
sqrt-div
flip3-+ associate-*r* flip-+ distribute-lft-out
cbrt-undiv div-exp prod-exp associate-/r/ cbrt-unprod unswap-sqr
+-commutative rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 pow-prod-down clear-num sum-log *-commutative div-inv associate-/l*
Counts
4 → 80
Calls
4 calls:
24.0ms
(/ (* (sqrt 2.0) (fabs im)) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
5.0ms
(* (sqrt 2.0) (fabs im))
13.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series279.0ms

Counts
4 → 12
Calls
4 calls:
162.0ms
(/ (* (sqrt 2.0) (fabs im)) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
37.0ms
(* (sqrt 2.0) (fabs im))
44.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify53.0ms

Algorithm
egg-herbie
Counts
92 → 92
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0433806
11901727
25001716

prune254.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 0.9b

regimes149.0ms

Accuracy

35.3% (23.9b remaining)

Error of 24.4b against oracle of 0.6b and baseline of 37.4b

bsearch221.0ms

Steps
ItersRangePoint
5
1.4215696808062822e-115
4.675966861882339e-115
1.4493474230643574e-115
8
-1.3229972502418326e-211
-8.43775892024765e-215
-4.1831474358645474e-212
8
-2.5946119843782734e-200
-2.9755272848592795e-204
-3.0163934746462264e-204
8
-5.775474684297679e-138
-1.8431099240066617e-140
-1.9966008063578885e-140
9
-3.827552672707701e+33
-7.814960403485421e+27
-2.504931184133823e+32

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06735
17235
27335
37335

end0.0ms

sample695.0ms

Algorithm
intervals
Results
215.0ms6096×body80valid
130.0ms637×body2560valid
77.0ms443×body1280valid
72.0ms296×body5120valid
39.0ms303×body640valid
14.0ms146×body320valid
5.0ms79×body160valid