Details

Time bar (total: 14.2s)

sample62.0ms

Algorithm
intervals
Results
14.0ms185×body80valid
14.0ms29×body2560valid
8.0ms13×body5120valid
5.0ms14×body1280valid
3.0ms10×body640valid
1.0msbody320valid
0.0msbody160valid

simplify28.0ms

Counts
1 → 1
Iterations

Useful iterations: 1 (5.0ms)

IterNodesCost
01215
12410
23010
33210
done3210

prune12.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 13.9b

localize15.0ms

Local error

Found 3 expressions with local error:

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

rewrite32.0ms

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

series449.0ms

Counts
3 → 9
Calls
3 calls:
86.0ms
(hypot re im)
284.0ms
(sqrt (* (+ re (hypot re im)) 2.0))
79.0ms
(+ re (hypot re im))

simplify2.3s

Counts
51 → 51
Iterations

Useful iterations: done (2.3s)

IterNodesCost
086414
1187377
2617354
33785345
done5000344

prune197.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 13.7b

localize14.0ms

Local error

Found 4 expressions with local error:

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

rewrite60.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-exp-log associate-*r* add-cbrt-cube 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 sqrt-unprod prod-exp sum-log *-commutative cbrt-unprod hypot-def
Counts
4 → 81
Calls
4 calls:
15.0ms
(sqrt (+ re (hypot re im)))
1.0ms
(hypot re im)
36.0ms
(* (sqrt (+ re (hypot re im))) (sqrt 2.0))
6.0ms
(+ re (hypot re im))

series606.0ms

Counts
4 → 12
Calls
4 calls:
213.0ms
(sqrt (+ re (hypot re im)))
67.0ms
(hypot re im)
245.0ms
(* (sqrt (+ re (hypot re im))) (sqrt 2.0))
81.0ms
(+ re (hypot re im))

simplify954.0ms

Counts
93 → 93
Iterations

Useful iterations: done (952.0ms)

IterNodesCost
0135898
1306827
21268780
done5000771

prune394.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 13.7b

localize27.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (hypot re im))
0.0b
(sqrt (* (+ re (* (sqrt (hypot re im)) (sqrt (hypot re im)))) 2.0))
0.5b
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
9.6b
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))

rewrite50.0ms

Algorithm
rewrite-expression-head
Rules
27×add-sqr-sqrt
23×pow1
22×sqrt-prod
14×add-cube-cbrt *-un-lft-identity
11×sqrt-pow1
10×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
fma-def pow-sqr
flip3-+ sqrt-div associate-*l/ flip-+
+-commutative pow2 rem-sqrt-square pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 97
Calls
4 calls:
1.0ms
(sqrt (hypot re im))
7.0ms
(sqrt (* (+ re (* (sqrt (hypot re im)) (sqrt (hypot re im)))) 2.0))
26.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
12.0ms
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))

series560.0ms

Counts
4 → 12
Calls
4 calls:
111.0ms
(sqrt (hypot re im))
293.0ms
(sqrt (* (+ re (* (sqrt (hypot re im)) (sqrt (hypot re im)))) 2.0))
77.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
78.0ms
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))

simplify1.7s

Counts
109 → 109
Iterations

Useful iterations: done (1.7s)

IterNodesCost
01431359
1337767
21439698
done5001689

prune356.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 13.7b

localize48.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))
7.9b
(+ re (* (sqrt (* (cbrt (hypot re im)) (cbrt (hypot re im)))) (* (sqrt (cbrt (hypot re im))) (sqrt (hypot re im)))))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
cbrt-prod
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
add-log-exp
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u
fma-def pow1/3
+-commutative flip3-+ sum-log flip-+
Counts
4 → 55
Calls
4 calls:
1.0ms
(cbrt (hypot re im))
1.0ms
(cbrt (hypot re im))
1.0ms
(cbrt (hypot re im))
14.0ms
(+ re (* (sqrt (* (cbrt (hypot re im)) (cbrt (hypot re im)))) (* (sqrt (cbrt (hypot re im))) (sqrt (hypot re im)))))

series546.0ms

Counts
4 → 12
Calls
4 calls:
169.0ms
(cbrt (hypot re im))
154.0ms
(cbrt (hypot re im))
144.0ms
(cbrt (hypot re im))
79.0ms
(+ re (* (sqrt (* (cbrt (hypot re im)) (cbrt (hypot re im)))) (* (sqrt (cbrt (hypot re im))) (sqrt (hypot re im)))))

simplify3.0s

Counts
67 → 67
Iterations

Useful iterations: 3 (924.0ms)

IterNodesCost
066842
1156714
2613638
34163595
done5000595

prune460.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 13.7b

regimes146.0ms

Accuracy

0% (0.6b remaining)

Error of 13.7b against oracle of 13.1b and baseline of 13.7b

bsearch0.0ms

simplify4.0ms

Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
01011
11311
done1311

end0.0ms

sample2.2s

Algorithm
intervals
Results
622.0ms306×body5120valid
590.0ms6000×body80valid
309.0ms694×body2560valid
238.0ms523×body1280valid
67.0ms254×body640valid
27.0ms144×body320valid
10.0ms79×body160valid