Details

Time bar (total: 4.7s)

sample28.0ms

Algorithm
intervals
Results
7.0ms188×body80valid
6.0ms26×body2560valid
3.0ms18×body1280valid
2.0msbody5120valid
1.0ms10×body640valid
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

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 37.1b

localize13.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)
26.6b
(sqrt (+ (* re re) (* im im)))

rewrite31.0ms

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

series257.0ms

Counts
3 → 9
Calls
3 calls:
174.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
48.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify73.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 3 (68.0ms)

IterNodesCost
0264372
1830337
22660322
35002320

prune193.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 8.5b

localize9.0ms

Local error

Found 2 expressions with local error:

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

rewrite19.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:
15.0ms
(sqrt (* 2.0 (* 1 (+ re (hypot re im)))))
3.0ms
(+ re (hypot re im))

series244.0ms

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

simplify88.0ms

Algorithm
egg-herbie
Counts
39 → 39
Iterations

Useful iterations: 2 (21.0ms)

IterNodesCost
0194185
1791167
23233161
35001161

prune119.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 8.4b

localize11.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im))))))
0.3b
(+ re (hypot re im))
0.3b
(+ re (hypot re im))
0.4b
(* (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))))

rewrite103.0ms

Algorithm
rewrite-expression-head
Rules
148×sqrt-pow1
146×pow1
76×pow-prod-down
31×sqrt-prod
30×associate-*r/
28×add-sqr-sqrt sqrt-div
22×pow1/2
21×pow-prod-up
19×*-un-lft-identity
15×add-cube-cbrt
13×pow-sqr
flip3-+ swap-sqr flip-+
add-log-exp
associate-*r* associate-*l*
add-exp-log fma-def add-cbrt-cube
expm1-log1p-u frac-times log1p-expm1-u unswap-sqr
+-commutative associate-*l/ sum-log distribute-lft-out
pow2 rem-sqrt-square pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 154
Calls
4 calls:
10.0ms
(sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im))))))
2.0ms
(+ re (hypot re im))
3.0ms
(+ re (hypot re im))
80.0ms
(* (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))))

series538.0ms

Counts
4 → 12
Calls
4 calls:
228.0ms
(sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im))))))
60.0ms
(+ re (hypot re im))
60.0ms
(+ re (hypot re im))
190.0ms
(* (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))))

simplify66.0ms

Algorithm
egg-herbie
Counts
166 → 166
Iterations

Useful iterations: 2 (53.0ms)

IterNodesCost
04081059
11918954
25001921

prune402.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 8.4b

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(+ re (hypot re im))
0.4b
(* (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) (cbrt (pow (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) 3)))
0.4b
(cbrt (pow (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) 3))
0.5b
(pow (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) 3)

rewrite91.0ms

Algorithm
rewrite-expression-head
Rules
52×cbrt-prod
49×add-sqr-sqrt
46×sqrt-prod
34×associate-*r/
32×sqrt-div
25×unpow-prod-down *-un-lft-identity cube-prod
23×add-cube-cbrt associate-*r*
14×pow1 unswap-sqr
10×cube-div
flip3-+ flip-+
cbrt-div sqrt-pow1
add-exp-log pow-pow associate-*l*
add-cbrt-cube add-log-exp
sqr-pow
expm1-log1p-u frac-times pow-prod-down log1p-expm1-u
cube-mult pow-unpow fma-def unpow3
pow1/2 associate-*l/
+-commutative pow-to-exp pow1/3 pow-exp prod-exp sum-log *-commutative sqrt-pow2 rem-cbrt-cube cbrt-unprod distribute-lft-out rem-cube-cbrt
Counts
4 → 157
Calls
4 calls:
3.0ms
(+ re (hypot re im))
66.0ms
(* (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) (cbrt (pow (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) 3)))
4.0ms
(cbrt (pow (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) 3))
12.0ms
(pow (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) 3)

series822.0ms

Counts
4 → 12
Calls
4 calls:
60.0ms
(+ re (hypot re im))
187.0ms
(* (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) (cbrt (pow (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) 3)))
226.0ms
(cbrt (pow (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) 3))
350.0ms
(pow (sqrt (sqrt (* 2.0 (* 1 (+ re (hypot re im)))))) 3)

simplify79.0ms

Algorithm
egg-herbie
Counts
169 → 169
Iterations

Useful iterations: 2 (61.0ms)

IterNodesCost
06282003
126451608
250011516

prune466.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 8.4b

regimes95.0ms

Accuracy

-8.3% (6.3b remaining)

Error of 13.9b against oracle of 7.6b and baseline of 13.4b

bsearch167.0ms

Steps
ItersRangePoint
9
5.81386847535435e+28
3.7661988674960076e+36
9.065835919646247e+35
8
9.54075249316399e-134
6.345363242268133e-131
2.4301831339222963e-131
9
-1.2579556351517705e+22
-5516994550455459.0
-2.4549770529786184e+20
4
-1.1860998636736231e+119
-5.962254730089143e+118
-8.108176740370824e+118

simplify4.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 2 (1.0ms)

IterNodesCost
04032
14532
25113
35413
46013
57113
67813
77913
87913

end0.0ms

sample742.0ms

Algorithm
intervals
Results
218.0ms6010×body80valid
168.0ms747×body2560valid
90.0ms476×body1280valid
74.0ms283×body5120valid
41.0ms275×body640valid
14.0ms137×body320valid
5.0ms72×body160valid