Details

Time bar (total: 11.8s)

sample42.0ms

Algorithm
intervals
Results
10.0ms190×body80valid
5.0ms22×body1280valid
5.0ms16×body2560valid
3.0msbody5120valid
3.0ms11×body640valid
1.0msbody320valid
0.0msbody160valid

simplify43.0ms

Counts
1 → 1
Iterations
IterNodes
done32
332
230
124
012

prune22.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 14.2b

localize13.0ms

Local error

Found 3 expressions with local error:

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

rewrite12.0ms

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

series417.0ms

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

simplify1.8s

Counts
51 → 51
Iterations
IterNodes
done5000
33673
2612
1187
086

prune354.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 13.7b

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite49.0ms

Algorithm
rewrite-expression-head
Rules
21×add-sqr-sqrt
16×*-un-lft-identity
15×sqrt-prod
10×add-cube-cbrt
pow1
associate-*l*
add-cbrt-cube associate-*r* add-exp-log add-log-exp
expm1-log1p-u sqrt-div log1p-expm1-u unswap-sqr
fma-def sqrt-pow1 flip3-+ pow1/2 pow-prod-down flip-+ distribute-lft-out
associate-*l/
+-commutative rem-sqrt-square hypot-udef sum-log sqrt-unprod prod-exp *-commutative cbrt-unprod hypot-def
Counts
4 → 81
Calls
4 calls:
18.0ms
(sqrt (+ re (hypot re im)))
1.0ms
(hypot re im)
23.0ms
(* (sqrt (+ re (hypot re im))) (sqrt 2.0))
5.0ms
(+ re (hypot re im))

series580.0ms

Counts
4 → 12
Calls
4 calls:
156.0ms
(sqrt (+ re (hypot re im)))
54.0ms
(hypot re im)
290.0ms
(* (sqrt (+ re (hypot re im))) (sqrt 2.0))
80.0ms
(+ re (hypot re im))

simplify707.0ms

Counts
93 → 93
Iterations
IterNodes
done5001
21278
1307
0135

prune526.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 13.7b

localize29.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot re im)
0.0b
(hypot re im)
0.2b
(sqrt (* (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re) 2.0))
15.7b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
pow1
add-sqr-sqrt expm1-log1p-u *-un-lft-identity add-cbrt-cube add-exp-log add-cube-cbrt log1p-expm1-u add-log-exp
hypot-udef sqrt-pow1
pow1/2 pow-prod-down sqrt-prod fma-udef
Counts
4 → 43
Calls
4 calls:
0.0ms
(hypot re im)
0.0ms
(hypot re im)
7.0ms
(sqrt (* (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re) 2.0))
1.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

series662.0ms

Counts
4 → 12
Calls
4 calls:
66.0ms
(hypot re im)
72.0ms
(hypot re im)
333.0ms
(sqrt (* (fma (sqrt (hypot re im)) (sqrt (hypot re im)) re) 2.0))
190.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) re)

simplify1.5s

Counts
55 → 55
Iterations
IterNodes
done5000
32477
2481
1149
074

prune422.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 13.7b

localize35.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt (hypot re im))
0.5b
(cbrt (hypot re im))
0.5b
(* (cbrt (hypot re im)) (cbrt (hypot re im)))
15.7b
(fma (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)))) (sqrt (hypot re im)) re)

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
22×cbrt-prod add-sqr-sqrt
14×*-un-lft-identity add-cube-cbrt
11×pow1
pow1/3
swap-sqr associate-*r* associate-*l* add-exp-log
expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp unswap-sqr
pow-prod-down pow-sqr pow-prod-up
pow2 pow-plus prod-exp *-commutative cbrt-unprod fma-udef
Counts
4 → 78
Calls
4 calls:
1.0ms
(cbrt (hypot re im))
1.0ms
(cbrt (hypot re im))
18.0ms
(* (cbrt (hypot re im)) (cbrt (hypot re im)))
1.0ms
(fma (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)))) (sqrt (hypot re im)) re)

series728.0ms

Counts
4 → 12
Calls
4 calls:
160.0ms
(cbrt (hypot re im))
181.0ms
(cbrt (hypot re im))
218.0ms
(* (cbrt (hypot re im)) (cbrt (hypot re im)))
169.0ms
(fma (sqrt (* (* (cbrt (hypot re im)) (cbrt (hypot re im))) (cbrt (hypot re im)))) (sqrt (hypot re im)) re)

simplify1.0s

Counts
90 → 90
Iterations
IterNodes
done5000
2820
1208
098

prune572.0ms

Pruning

15 alts after pruning (13 fresh and 2 done)

Merged error: 13.7b

regimes288.0ms

Accuracy

0% (0.3b remaining)

Error of 13.6b against oracle of 13.3b and baseline of 13.6b

bsearch0.0ms

simplify2.0ms

Iterations
IterNodes
done12
112
09

end0.0ms

sample2.0s

Algorithm
intervals
Results
1.0s5974×body80valid
246.0ms696×body2560valid
191.0ms501×body1280valid
131.0ms301×body5120valid
92.0ms275×body640valid
27.0ms169×body320valid
10.0ms84×body160valid