Details

Time bar (total: 2.8s)

sample34.0ms

Algorithm
intervals
Results
12.0ms200×body80valid
4.0ms18×body2560valid
3.0ms16×body1280valid
2.0ms14×body640valid
2.0msbody5120valid
0.0msbody320valid

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: 39.7b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.3b
(+ (sqrt (+ (* re re) (* im im))) re)
30.7b
(sqrt (+ (* re re) (* im im)))

rewrite26.0ms

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

series113.0ms

Counts
3 → 9
Calls
3 calls:
27.0ms
(+ (* re re) (* im im))
50.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify66.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 3 (61.0ms)

IterNodesCost
0194279
1769246
22332233
35002230

prune184.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 7.8b

localize9.0ms

Local error

Found 1 expressions with local error:

0.3b
(+ (* 1 (hypot re im)) re)

rewrite3.0ms

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

series59.0ms

Counts
1 → 3
Calls
1 calls:
59.0ms
(+ (* 1 (hypot re im)) re)

simplify57.0ms

Algorithm
egg-herbie
Counts
18 → 18
Iterations

Useful iterations: 4 (55.0ms)

IterNodesCost
09677
124067
271466
3218063
4500162

prune67.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 7.8b

localize10.0ms

Local error

Found 3 expressions with local error:

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

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt
22×sqrt-prod
18×pow1
17×*-un-lft-identity
12×sqrt-div
11×add-cube-cbrt
swap-sqr
sqrt-pow1 flip3-+ pow1/2 flip-+
associate-*r* associate-*l* add-log-exp
distribute-lft-out
add-exp-log pow-prod-up add-cbrt-cube
frac-times unswap-sqr
expm1-log1p-u pow-prod-down pow-sqr log1p-expm1-u
+-commutative fma-def associate-*r/ associate-*l/ sum-log
pow2 pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
3 → 92
Calls
3 calls:
6.0ms
(+ (* 1 (hypot re im)) re)
3.0ms
(+ (* 1 (hypot re im)) re)
24.0ms
(* (sqrt (+ (* 1 (hypot re im)) re)) (sqrt (+ (* 1 (hypot re im)) re)))

series176.0ms

Counts
3 → 9
Calls
3 calls:
59.0ms
(+ (* 1 (hypot re im)) re)
60.0ms
(+ (* 1 (hypot re im)) re)
56.0ms
(* (sqrt (+ (* 1 (hypot re im)) re)) (sqrt (+ (* 1 (hypot re im)) re)))

simplify38.0ms

Algorithm
egg-herbie
Counts
101 → 101
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0195576
1728494
25001465

prune260.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 7.8b

localize12.0ms

Local error

Found 2 expressions with local error:

0.3b
(+ (* 1 (hypot re im)) re)
3.9b
(expm1 (log1p (+ (* 1 (hypot re im)) re)))

rewrite4.0ms

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

series195.0ms

Counts
2 → 6
Calls
2 calls:
60.0ms
(+ (* 1 (hypot re im)) re)
135.0ms
(expm1 (log1p (+ (* 1 (hypot re im)) re)))

simplify42.0ms

Algorithm
egg-herbie
Counts
32 → 32
Iterations

Useful iterations: 3 (39.0ms)

IterNodesCost
0136144
1334125
21008119
35001110

prune93.0ms

Pruning

7 alts after pruning (4 fresh and 3 done)

Merged error: 7.8b

regimes136.0ms

Accuracy

-7.1% (6.2b remaining)

Error of 13.4b against oracle of 7.2b and baseline of 13.0b

bsearch211.0ms

Steps
ItersRangePoint
10
2.5709113650304338e+95
1.5039667669020633e+106
6.702754729213891e+102
10
4.122383429310145e-42
2.7948480569723964e-28
1.090864784373749e-38
8
-4.795657389400237e-125
-1.8415330889540858e-127
-1.1781651487664911e-125
6
-3.9131830259355673e-87
-4.6068756624254715e-88
-1.47033881827273e-87

simplify4.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 2 (1.0ms)

IterNodesCost
04132
14632
25213
35513
46113
57213
67913
78013
88013

end0.0ms

sample950.0ms

Algorithm
intervals
Results
383.0ms6066×body80valid
163.0ms648×body2560valid
103.0ms482×body1280valid
81.0ms276×body5120valid
50.0ms287×body640valid
20.0ms142×body320valid
10.0ms99×body160valid