Details

Time bar (total: 11.7s)

sample24.0ms

Algorithm
intervals
Results
6.0ms200×body80valid
3.0ms18×body2560valid
2.0ms10×body5120valid
2.0ms14×body1280valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify14.0ms

Counts
1 → 1
Iterations

Useful iterations: 1 (2.0ms)

IterNodesCost
01215
12410
23010
33210
done3210

prune6.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 12.0b

localize7.0ms

Local error

Found 2 expressions with local error:

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

rewrite14.0ms

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

series253.0ms

Counts
2 → 6
Calls
2 calls:
192.0ms
(sqrt (* (+ re (hypot re im)) 2.0))
62.0ms
(+ re (hypot re im))

simplify2.9s

Counts
38 → 38
Iterations

Useful iterations: 4 (1.3s)

IterNodesCost
075354
1173325
2444302
31193293
43103292
done5000292

prune98.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 11.9b

localize8.0ms

Local error

Found 3 expressions with local error:

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

rewrite40.0ms

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

series374.0ms

Counts
3 → 9
Calls
3 calls:
124.0ms
(sqrt (+ re (hypot re im)))
190.0ms
(* (sqrt (+ re (hypot re im))) (sqrt 2.0))
60.0ms
(+ re (hypot re im))

simplify2.4s

Counts
80 → 80
Iterations

Useful iterations: done (2.4s)

IterNodesCost
0124838
1285767
2725726
31920714
done5000712

prune181.0ms

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 11.8b

localize10.0ms

Local error

Found 4 expressions with local error:

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

rewrite105.0ms

Algorithm
rewrite-expression-head
Rules
35×sqrt-prod
29×add-sqr-sqrt
20×*-un-lft-identity
18×associate-*r*
17×pow1
14×add-cube-cbrt
11×add-exp-log add-cbrt-cube
10×pow-prod-down
associate-*l*
sqrt-pow1 pow1/2 sqrt-div associate-*l/ add-log-exp unswap-sqr
expm1-log1p-u flip3-+ prod-exp cbrt-unprod flip-+ log1p-expm1-u
fma-def sqrt-unprod distribute-lft-out
*-commutative
+-commutative rem-sqrt-square sum-log hypot-def
Counts
4 → 107
Calls
4 calls:
7.0ms
(sqrt (+ re (hypot re im)))
30.0ms
(* (sqrt (+ re (hypot re im))) (sqrt (sqrt 2.0)))
59.0ms
(* (* (sqrt (+ re (hypot re im))) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))
5.0ms
(+ re (hypot re im))

series615.0ms

Counts
4 → 12
Calls
4 calls:
130.0ms
(sqrt (+ re (hypot re im)))
239.0ms
(* (sqrt (+ re (hypot re im))) (sqrt (sqrt 2.0)))
186.0ms
(* (* (sqrt (+ re (hypot re im))) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))
59.0ms
(+ re (hypot re im))

simplify1.9s

Counts
119 → 119
Iterations

Useful iterations: done (1.9s)

IterNodesCost
01711567
14211320
211861214
334881199
done50001195

prune286.0ms

Pruning

3 alts after pruning (1 fresh and 2 done)

Merged error: 11.8b

localize17.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt re)
0.6b
(cbrt re)
0.6b
(cbrt re)
13.5b
(fma (* (cbrt re) (cbrt re)) (cbrt re) (hypot re im))

rewrite4.0ms

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

series732.0ms

Counts
4 → 12
Calls
4 calls:
185.0ms
(cbrt re)
180.0ms
(cbrt re)
179.0ms
(cbrt re)
187.0ms
(fma (* (cbrt re) (cbrt re)) (cbrt re) (hypot re im))

simplify797.0ms

Counts
61 → 61
Iterations

Useful iterations: 3 (49.0ms)

IterNodesCost
042372
162360
2121286
3329244
41216244
done5000244

prune202.0ms

Pruning

4 alts after pruning (1 fresh and 3 done)

Merged error: 11.8b

regimes41.0ms

Accuracy

0% (0.2b remaining)

Error of 12.8b against oracle of 12.6b and baseline of 12.8b

bsearch0.0ms

simplify4.0ms

Iterations

Useful iterations: 0 (3.0ms)

IterNodesCost
0910
11210
done1210

end0.0ms

sample665.0ms

Algorithm
intervals
Results
182.0ms6072×body80valid
129.0ms700×body2560valid
75.0ms507×body1280valid
65.0ms299×body5120valid
29.0ms232×body640valid
10.0ms123×body320valid
4.0ms67×body160valid