Details

Time bar (total: 4.1s)

sample26.0ms

Algorithm
intervals
Results
7.0ms199×body80valid
5.0ms23×body2560valid
2.0msbody5120valid
1.0ms11×body640valid
1.0msbody1280valid
1.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.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: 38.1b

Counts
2 → 1

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.2b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.7b
(+ (sqrt (+ (* re re) (* im im))) re)
31.4b
(sqrt (+ (* re re) (* im im)))

rewrite25.0ms

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

series307.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(+ (* re re) (* im im))
185.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
46.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
41.0ms
(sqrt (+ (* re re) (* im im)))

simplify94.0ms

Algorithm
egg-herbie
Counts
79 → 79
Iterations

Useful iterations: 3 (88.0ms)

IterNodesCost
0296446
11086401
23561382
35001381

prune239.0ms

Filtered
79 candidates to 69 candidates (87.3%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New74579
Fresh000
Picked101
Done000
Total75580

Merged error: 6.7b

Counts
80 → 5

localize8.0ms

Local error

Found 2 expressions with local error:

0.2b
(sqrt (* 2.0 (* 1 (+ re (hypot re im)))))
0.7b
(+ re (hypot re im))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
pow1
*-un-lft-identity
associate-*r/ add-log-exp
add-sqr-sqrt add-cube-cbrt fma-def sqrt-pow1 pow-prod-down
add-exp-log expm1-log1p-u flip3-+ sqrt-div add-cbrt-cube flip-+ log1p-expm1-u
+-commutative pow1/2 sum-log sqrt-prod distribute-lft-out
Counts
2 → 33
Calls
2 calls:
6.0ms
(sqrt (* 2.0 (* 1 (+ re (hypot re im)))))
4.0ms
(+ re (hypot re im))

series262.0ms

Counts
2 → 6
Calls
2 calls:
200.0ms
(sqrt (* 2.0 (* 1 (+ re (hypot re im)))))
62.0ms
(+ re (hypot re im))

simplify85.0ms

Algorithm
egg-herbie
Counts
39 → 39
Iterations

Useful iterations: 2 (22.0ms)

IterNodesCost
0194185
1791167
23233161
35001161

prune120.0ms

Filtered
39 candidates to 34 candidates (87.2%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New36339
Fresh224
Picked011
Done000
Total38644

Merged error: 6.4b

Counts
44 → 6

localize8.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (+ re (hypot re im)))
0.3b
(* (sqrt 2.0) (sqrt (+ re (hypot re im))))
0.7b
(+ re (hypot re im))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
15×*-un-lft-identity sqrt-prod
add-cube-cbrt
pow1
associate-*r*
associate-*l*
add-exp-log add-cbrt-cube add-log-exp
sqrt-div unswap-sqr
expm1-log1p-u fma-def sqrt-pow1 flip3-+ pow1/2 pow-prod-down flip-+ log1p-expm1-u distribute-lft-out
associate-*r/
+-commutative rem-sqrt-square sqrt-unprod prod-exp sum-log *-commutative cbrt-unprod hypot-def
Counts
3 → 71
Calls
3 calls:
3.0ms
(sqrt (+ re (hypot re im)))
8.0ms
(* (sqrt 2.0) (sqrt (+ re (hypot re im))))
3.0ms
(+ re (hypot re im))

series398.0ms

Counts
3 → 9
Calls
3 calls:
137.0ms
(sqrt (+ re (hypot re im)))
199.0ms
(* (sqrt 2.0) (sqrt (+ re (hypot re im))))
61.0ms
(+ re (hypot re im))

simplify108.0ms

Algorithm
egg-herbie
Counts
80 → 80
Iterations

Useful iterations: 2 (29.0ms)

IterNodesCost
0288433
1992402
24306387
35001387

prune206.0ms

Filtered
80 candidates to 62 candidates (77.5%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New79180
Fresh134
Picked101
Done011
Total81586

Merged error: 6.4b

Counts
86 → 5

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (+ re (hypot re im)))
0.2b
(* (sqrt (sqrt 2.0)) (* (sqrt (sqrt 2.0)) (sqrt (+ re (hypot re im)))))
0.3b
(* (sqrt (sqrt 2.0)) (sqrt (+ re (hypot re im))))
0.7b
(+ re (hypot re im))

rewrite37.0ms

Algorithm
rewrite-expression-head
Rules
35×sqrt-prod
29×add-sqr-sqrt
20×*-un-lft-identity
18×associate-*l*
17×pow1
14×add-cube-cbrt
11×add-exp-log add-cbrt-cube
10×pow-prod-down
associate-*r*
sqrt-pow1 pow1/2 sqrt-div associate-*r/ add-log-exp unswap-sqr
expm1-log1p-u flip3-+ prod-exp cbrt-unprod flip-+ log1p-expm1-u
fma-def sqrt-unprod distribute-lft-out
*-commutative
+-commutative rem-sqrt-square sum-log hypot-def
Counts
4 → 107
Calls
4 calls:
3.0ms
(sqrt (+ re (hypot re im)))
17.0ms
(* (sqrt (sqrt 2.0)) (* (sqrt (sqrt 2.0)) (sqrt (+ re (hypot re im)))))
10.0ms
(* (sqrt (sqrt 2.0)) (sqrt (+ re (hypot re im))))
3.0ms
(+ re (hypot re im))

series858.0ms

Counts
4 → 12
Calls
4 calls:
319.0ms
(sqrt (+ re (hypot re im)))
215.0ms
(* (sqrt (sqrt 2.0)) (* (sqrt (sqrt 2.0)) (sqrt (+ re (hypot re im)))))
265.0ms
(* (sqrt (sqrt 2.0)) (sqrt (+ re (hypot re im))))
58.0ms
(+ re (hypot re im))

simplify53.0ms

Algorithm
egg-herbie
Counts
119 → 119
Iterations

Useful iterations: 2 (43.0ms)

IterNodesCost
0405828
11591742
25001725

prune318.0ms

Filtered
119 candidates to 91 candidates (76.5%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New1181119
Fresh033
Picked101
Done011
Total1195124

Merged error: 6.4b

Counts
124 → 5

regimes110.0ms

Accuracy

25.8% (4.4b remaining)

Error of 11.3b against oracle of 7.0b and baseline of 12.9b

bsearch61.0ms

Steps
ItersRangePoint
9
-1.1334036948025617e+30
-2.3268372888139707e+24
-4.5768773392950057e+27

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03114
13514
23514

end0.0ms

sample694.0ms

Algorithm
intervals
Results
212.0ms6077×body80valid
137.0ms666×body2560valid
80.0ms293×body5120valid
78.0ms473×body1280valid
37.0ms288×body640valid
13.0ms129×body320valid
5.0ms74×body160valid