Details

Time bar (total: 4.6s)

sample44.0ms

Algorithm
intervals
Results
12.0ms181×body80valid
8.0ms23×body2560valid
7.0ms16×body5120valid
5.0ms19×body1280valid
2.0msbody640valid
1.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: 41.8b

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

rewrite36.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:
2.0ms
(+ (* re re) (* im im))
11.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
18.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))

series307.0ms

Counts
4 → 12
Calls
4 calls:
31.0ms
(+ (* re re) (* im im))
187.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
52.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify92.0ms

Algorithm
egg-herbie
Counts
79 → 79
Iterations

Useful iterations: 3 (86.0ms)

IterNodesCost
0296446
11086401
23561382
35001381

prune229.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 9.7b

localize9.0ms

Local error

Found 3 expressions with local error:

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

rewrite9.0ms

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

series316.0ms

Counts
3 → 9
Calls
3 calls:
53.0ms
(hypot re im)
199.0ms
(sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))
63.0ms
(+ (* (sqrt 1) (hypot re im)) re)

simplify71.0ms

Algorithm
egg-herbie
Counts
48 → 48
Iterations

Useful iterations: 3 (66.0ms)

IterNodesCost
0218274
1658245
22414237
35001233

prune163.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 9.6b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot re im)
0.2b
(sqrt (* 2.0 (+ (* (sqrt 1) (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)))
0.5b
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
8.9b
(+ (* (sqrt 1) (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

rewrite39.0ms

Algorithm
rewrite-expression-head
Rules
24×add-sqr-sqrt
22×pow1
19×sqrt-prod
12×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 pow-prod-down log1p-expm1-u unswap-sqr
pow-sqr
flip3-+ sqrt-div associate-*r/ flip-+
+-commutative pow2 hypot-udef fma-def pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 90
Calls
4 calls:
0.0ms
(hypot re im)
16.0ms
(sqrt (* 2.0 (+ (* (sqrt 1) (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)))
6.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
14.0ms
(+ (* (sqrt 1) (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

series553.0ms

Counts
4 → 12
Calls
4 calls:
46.0ms
(hypot re im)
391.0ms
(sqrt (* 2.0 (+ (* (sqrt 1) (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)))
53.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
62.0ms
(+ (* (sqrt 1) (* (sqrt (hypot re im)) (sqrt (hypot re im)))) re)

simplify47.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0292589
11053507
25001452

prune260.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 9.4b

localize15.0ms

Local error

Found 4 expressions with local error:

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

rewrite71.0ms

Algorithm
rewrite-expression-head
Rules
88×sqrt-prod
66×add-sqr-sqrt
27×unpow-prod-down cube-prod
24×associate-*r* unswap-sqr
21×add-cube-cbrt *-un-lft-identity
11×pow1
10×add-exp-log
associate-*l*
add-cbrt-cube
sqrt-pow1 add-log-exp
pow-pow sqr-pow
expm1-log1p-u log1p-expm1-u
pow-unpow pow1/2 prod-exp
cube-mult pow-to-exp flip3-+ sqrt-div unpow3 associate-*r/ pow-exp flip-+
+-commutative fma-def pow-prod-down sum-log *-commutative pow-prod-up sqrt-pow2 cbrt-unprod rem-cube-cbrt
Counts
4 → 143
Calls
4 calls:
23.0ms
(sqrt (* 2.0 (+ (* (sqrt 1) (* (sqrt (sqrt (hypot re im))) (pow (sqrt (sqrt (hypot re im))) 3))) re)))
18.0ms
(* (sqrt (sqrt (hypot re im))) (pow (sqrt (sqrt (hypot re im))) 3))
3.0ms
(pow (sqrt (sqrt (hypot re im))) 3)
22.0ms
(+ (* (sqrt 1) (* (sqrt (sqrt (hypot re im))) (pow (sqrt (sqrt (hypot re im))) 3))) re)

series437.0ms

Counts
4 → 12
Calls
4 calls:
196.0ms
(sqrt (* 2.0 (+ (* (sqrt 1) (* (sqrt (sqrt (hypot re im))) (pow (sqrt (sqrt (hypot re im))) 3))) re)))
47.0ms
(* (sqrt (sqrt (hypot re im))) (pow (sqrt (sqrt (hypot re im))) 3))
133.0ms
(pow (sqrt (sqrt (hypot re im))) 3)
61.0ms
(+ (* (sqrt 1) (* (sqrt (sqrt (hypot re im))) (pow (sqrt (sqrt (hypot re im))) 3))) re)

simplify80.0ms

Algorithm
egg-herbie
Counts
155 → 155
Iterations

Useful iterations: 2 (61.0ms)

IterNodesCost
04431643
119471175
25002993

prune340.0ms

Pruning

13 alts after pruning (12 fresh and 1 done)

Merged error: 9.3b

regimes206.0ms

Accuracy

21.4% (4.4b remaining)

Error of 11.9b against oracle of 7.5b and baseline of 13.2b

bsearch71.0ms

Steps
ItersRangePoint
8
-1.1625254677380091e+176
-4.1764951624507323e+173
-1.156054729702237e+174

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03215
13415
23415

end0.0ms

sample1.1s

Algorithm
intervals
Results
416.0ms6051×body80valid
240.0ms675×body2560valid
134.0ms466×body1280valid
122.0ms295×body5120valid
62.0ms277×body640valid
25.0ms149×body320valid
10.0ms87×body160valid