Details

Time bar (total: 2.9s)

sample25.0ms

Algorithm
intervals
Results
6.0ms199×body80valid
4.0ms20×body2560valid
3.0ms14×body5120valid
2.0ms10×body1280valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0248
1308
2338
3338

prune3.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 36.2b

Counts
2 → 1

localize13.0ms

Local error

Found 2 expressions with local error:

0.4b
(+ (sqrt (+ (* re re) (* im im))) re)
27.8b
(sqrt (+ (* re re) (* im im)))

rewrite11.0ms

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

series83.0ms

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

simplify87.0ms

Algorithm
egg-herbie
Counts
44 → 44
Iterations

Useful iterations: 4 (83.0ms)

IterNodesCost
0155205
1421183
21067180
33190179
45001178

prune124.0ms

Filtered
44 candidates to 40 candidates (90.9%)
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New41344
Fresh000
Picked101
Done000
Total42345

Merged error: 5.7b

Counts
45 → 3

localize9.0ms

Local error

Found 2 expressions with local error:

0.0b
(hypot re im)
0.4b
(+ (* (sqrt 1) (hypot re im)) re)

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
add-log-exp
pow1 add-exp-log add-sqr-sqrt expm1-log1p-u add-cube-cbrt *-un-lft-identity add-cbrt-cube log1p-expm1-u
+-commutative hypot-udef fma-def flip3-+ sum-log flip-+
Counts
2 → 24
Calls
2 calls:
1.0ms
(hypot re im)
5.0ms
(+ (* (sqrt 1) (hypot re im)) re)

series100.0ms

Counts
2 → 6
Calls
2 calls:
43.0ms
(hypot re im)
57.0ms
(+ (* (sqrt 1) (hypot re im)) re)

simplify95.0ms

Algorithm
egg-herbie
Counts
30 → 30
Iterations

Useful iterations: 4 (92.0ms)

IterNodesCost
0111124
1285109
2788106
33168104
45001103

prune103.0ms

Filtered
30 candidates to 29 candidates (96.7%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New27330
Fresh022
Picked011
Done000
Total27633

Merged error: 5.7b

Counts
33 → 6

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (hypot re im))
0.0b
(sqrt (hypot re im))
0.5b
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
6.0b
(+ (* (sqrt 1) (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
28×add-sqr-sqrt
24×sqrt-prod
21×pow1
14×add-cube-cbrt *-un-lft-identity
10×sqrt-pow1 pow1/2
swap-sqr
add-exp-log associate-*r* associate-*l* add-cbrt-cube add-log-exp
pow-prod-up
expm1-log1p-u log1p-expm1-u unswap-sqr
pow-prod-down pow-sqr
rem-sqrt-square
+-commutative pow2 fma-def flip3-+ pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod flip-+
Counts
4 → 95
Calls
4 calls:
1.0ms
(sqrt (hypot re im))
2.0ms
(sqrt (hypot re im))
6.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
14.0ms
(+ (* (sqrt 1) (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

series273.0ms

Counts
4 → 12
Calls
4 calls:
85.0ms
(sqrt (hypot re im))
85.0ms
(sqrt (hypot re im))
49.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
54.0ms
(+ (* (sqrt 1) (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

simplify38.0ms

Algorithm
egg-herbie
Counts
107 → 107
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0239514
1929420
25001367

prune261.0ms

Filtered
107 candidates to 68 candidates (63.6%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1043107
Fresh224
Picked101
Done011
Total1076113

Merged error: 5.7b

Counts
113 → 6

localize14.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (sqrt (hypot re im)))
0.5b
(* (* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im)))) (sqrt (hypot re im)))
0.6b
(* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im))))
10.1b
(+ (* (sqrt 1) (* (* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im)))) (sqrt (hypot re im)))) re)

rewrite59.0ms

Algorithm
rewrite-expression-head
Rules
93×sqrt-pow1
81×sqrt-prod
73×pow1
56×add-sqr-sqrt
51×pow1/2
43×pow-prod-up
20×add-cube-cbrt *-un-lft-identity
17×swap-sqr
15×associate-*r*
13×pow-sqr
12×pow-prod-down
11×add-exp-log add-cbrt-cube unswap-sqr
10×associate-*l*
pow-plus
add-log-exp
expm1-log1p-u prod-exp cbrt-unprod log1p-expm1-u
sqrt-unprod
rem-sqrt-square *-commutative
+-commutative pow2 fma-def flip3-+ sum-log rem-square-sqrt flip-+
Counts
4 → 166
Calls
4 calls:
5.0ms
(sqrt (sqrt (hypot re im)))
15.0ms
(* (* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im)))) (sqrt (hypot re im)))
10.0ms
(* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im))))
23.0ms
(+ (* (sqrt 1) (* (* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im)))) (sqrt (hypot re im)))) re)

series299.0ms

Counts
4 → 12
Calls
4 calls:
108.0ms
(sqrt (sqrt (hypot re im)))
51.0ms
(* (* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im)))) (sqrt (hypot re im)))
85.0ms
(* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im))))
55.0ms
(+ (* (sqrt 1) (* (* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im)))) (sqrt (hypot re im)))) re)

simplify60.0ms

Algorithm
egg-herbie
Counts
178 → 178
Iterations

Useful iterations: 2 (48.0ms)

IterNodesCost
0431934
11709732
25002651

prune333.0ms

Filtered
178 candidates to 84 candidates (47.2%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New1771178
Fresh134
Picked101
Done011
Total1795184

Merged error: 5.7b

Counts
184 → 5

regimes105.0ms

Accuracy

30.9% (4.0b remaining)

Error of 11.5b against oracle of 7.5b and baseline of 13.3b

bsearch60.0ms

Steps
ItersRangePoint
10
-3.402130339251646e+46
-2.7167357396098293e+32
-2.0552943193185366e+44

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03014
13014

end0.0ms

sample675.0ms

Algorithm
intervals
Results
197.0ms5977×body80valid
146.0ms755×body2560valid
72.0ms461×body1280valid
72.0ms312×body5120valid
34.0ms285×body640valid
14.0ms150×body320valid
4.0ms60×body160valid