Details

Time bar (total: 4.0s)

sample28.0ms

Algorithm
intervals
Results
6.0ms195×body80valid
4.0ms23×body2560valid
3.0ms12×body5120valid
2.0ms12×body1280valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune2.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 37.1b

localize10.0ms

Local error

Found 4 expressions with local error:

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

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
pow1 add-log-exp
*-un-lft-identity
add-cube-cbrt sqrt-prod
add-exp-log sqrt-div add-cbrt-cube
sqrt-pow1
flip3-- flip3-+ pow1/2 associate-*r/ flip-- flip-+ difference-of-squares
+-commutative sub-neg rem-sqrt-square diff-log pow-prod-down sum-log distribute-lft-out--
Counts
4 → 54
Calls
4 calls:
2.0ms
(+ (* re re) (* im im))
12.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
18.0ms
(- (sqrt (+ (* re re) (* im im))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))

series288.0ms

Counts
4 → 12
Calls
4 calls:
28.0ms
(+ (* re re) (* im im))
168.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
45.0ms
(- (sqrt (+ (* re re) (* im im))) re)
47.0ms
(sqrt (+ (* re re) (* im im)))

simplify91.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (84.0ms)

IterNodesCost
0258459
1938422
23098412
35001410

prune177.0ms

Filtered
66 candidates to 52 candidates (78.8%)
Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 17.5b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.4b
(* (sqrt 2.0) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
0.6b
(- (sqrt (+ (* re re) (* im im))) re)
29.1b
(sqrt (+ (* re re) (* im im)))

rewrite70.0ms

Algorithm
rewrite-expression-head
Rules
26×add-sqr-sqrt
18×sqrt-prod
13×*-un-lft-identity
pow1 add-cube-cbrt associate-*r*
add-log-exp
add-exp-log associate-*l* add-cbrt-cube
sqrt-div difference-of-squares unswap-sqr
sqrt-pow1 pow1/2 pow-prod-down
flip3-- flip3-+ associate-*r/ flip-- flip-+ distribute-lft-out--
+-commutative sub-neg rem-sqrt-square sqrt-unprod diff-log prod-exp sum-log *-commutative cbrt-unprod
Counts
4 → 76
Calls
4 calls:
2.0ms
(+ (* re re) (* im im))
42.0ms
(* (sqrt 2.0) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
20.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series278.0ms

Counts
4 → 12
Calls
4 calls:
29.0ms
(+ (* re re) (* im im))
168.0ms
(* (sqrt 2.0) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
44.0ms
(- (sqrt (+ (* re re) (* im im))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify134.0ms

Algorithm
egg-herbie
Counts
88 → 88
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0314691
11267648
24889633
35001633

prune210.0ms

Filtered
88 candidates to 63 candidates (71.6%)
Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 17.2b

localize16.0ms

Local error

Found 4 expressions with local error:

0.1b
(+ (sqrt (+ (* re re) (* im im))) re)
5.6b
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
20.3b
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
29.1b
(sqrt (+ (* re re) (* im im)))

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

series334.0ms

Counts
4 → 12
Calls
4 calls:
43.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
191.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
62.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify49.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
04171078
11461985
25001978

prune278.0ms

Filtered
111 candidates to 78 candidates (70.3%)
Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 6.5b

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))
0.1b
(+ (sqrt (+ (* re re) (* im im))) re)
5.6b
(sqrt (* 2.0 (* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))))
29.1b
(sqrt (+ (* re re) (* im im)))

rewrite98.0ms

Algorithm
rewrite-expression-head
Rules
22×*-un-lft-identity
20×add-sqr-sqrt
18×associate-*r*
14×add-cube-cbrt
13×pow1 times-frac
add-exp-log add-cbrt-cube
add-log-exp
sqrt-pow1 pow-prod-down sqrt-prod distribute-lft-out
flip3-+ sqrt-div associate-*r/ associate-*l* flip-+
pow1/2 prod-exp associate-/r/ cbrt-unprod unswap-sqr
cbrt-undiv +-commutative rem-sqrt-square div-exp sum-log *-commutative div-inv
Counts
4 → 77
Calls
4 calls:
45.0ms
(* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))
14.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
34.0ms
(sqrt (* 2.0 (* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series336.0ms

Counts
4 → 12
Calls
4 calls:
65.0ms
(* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))
44.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
192.0ms
(sqrt (* 2.0 (* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify52.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 2 (44.0ms)

IterNodesCost
0428701
11831618
25002614

prune211.0ms

Filtered
89 candidates to 66 candidates (74.2%)
Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 5.2b

regimes257.0ms

Accuracy

44.8% (18.2b remaining)

Error of 24.1b against oracle of 5.8b and baseline of 38.8b

bsearch299.0ms

Steps
ItersRangePoint
8
7.123313112193616e+69
1.9477646189705448e+74
1.2256843292073932e+73
8
6.621149997396504e-158
8.617823638084847e-155
7.282899940538032e-158
10
8.658111435367597e-305
1.828871157960009e-292
1.4576614458613933e-304
8
-4.975022232779082e-229
-4.501245741150392e-232
-1.8443361170365075e-231
6
-4.033472907955283e-182
-9.183397464113432e-183
-2.0514133168585066e-182
9
-2.57686138200627e-111
-4.6087528996132826e-120
-1.651091264846107e-119
7
-8.786369008283137e+83
-5.731627655371417e+81
-1.2671946284215746e+83

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
07649
18149
28249
38249

end0.0ms

sample662.0ms

Algorithm
intervals
Results
202.0ms6025×body80valid
129.0ms684×body2560valid
77.0ms492×body1280valid
69.0ms303×body5120valid
34.0ms283×body640valid
13.0ms142×body320valid
4.0ms71×body160valid