Details

Time bar (total: 10.1s)

sample27.0ms

Algorithm
intervals
Results
7.0ms190×body80valid
5.0ms23×body2560valid
3.0ms13×body5120valid
2.0ms14×body1280valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify15.0ms

Counts
1 → 1
Iterations

Useful iterations: 1 (2.0ms)

IterNodesCost
01215
12410
22910
33110
done3110

prune5.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 12.5b

localize7.0ms

Local error

Found 2 expressions with local error:

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

rewrite7.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:
4.0ms
(sqrt (* (+ re (hypot re im)) 2.0))
3.0ms
(+ re (hypot re im))

series250.0ms

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

simplify2.5s

Counts
38 → 38
Iterations

Useful iterations: 4 (1.7s)

IterNodesCost
075354
1173325
2446302
31277293
43884292
done5001292

prune101.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 12.3b

localize9.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.6b
(+ re (hypot re im))

rewrite22.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:
4.0ms
(sqrt (+ re (hypot re im)))
13.0ms
(* (sqrt (+ re (hypot re im))) (sqrt 2.0))
3.0ms
(+ re (hypot re im))

series365.0ms

Counts
3 → 9
Calls
3 calls:
120.0ms
(sqrt (+ re (hypot re im)))
187.0ms
(* (sqrt (+ re (hypot re im))) (sqrt 2.0))
58.0ms
(+ re (hypot re im))

simplify1.6s

Counts
80 → 80
Iterations

Useful iterations: done (1.6s)

IterNodesCost
0124838
1286767
2741726
32024715
done5000712

prune193.0ms

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 12.3b

localize12.0ms

Local error

Found 4 expressions with local error:

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

rewrite45.0ms

Algorithm
rewrite-expression-head
Rules
22×add-sqr-sqrt
17×*-un-lft-identity
15×sqrt-prod
14×pow1
11×add-cube-cbrt
exp-prod associate-*l*
add-exp-log sqrt-div associate-*r* pow-prod-down add-cbrt-cube add-log-exp
sqrt-pow1 pow1/2
expm1-log1p-u flip3-+ associate-*l/ log-pow flip-+ log1p-expm1-u unswap-sqr
fma-def distribute-lft-out
log-div exp-diff
+-commutative rem-sqrt-square log-prod sqrt-unprod exp-sum prod-exp sum-log *-commutative cbrt-unprod hypot-def rem-exp-log
Counts
4 → 91
Calls
4 calls:
4.0ms
(sqrt (+ re (hypot re im)))
14.0ms
(* (sqrt (+ re (hypot re im))) (sqrt 2.0))
2.0ms
(+ re (hypot re im))
22.0ms
(exp (log (* (sqrt (+ re (hypot re im))) (sqrt 2.0))))

series547.0ms

Counts
4 → 12
Calls
4 calls:
123.0ms
(sqrt (+ re (hypot re im)))
183.0ms
(* (sqrt (+ re (hypot re im))) (sqrt 2.0))
57.0ms
(+ re (hypot re im))
185.0ms
(exp (log (* (sqrt (+ re (hypot re im))) (sqrt 2.0))))

simplify1.3s

Counts
103 → 103
Iterations

Useful iterations: done (1.3s)

IterNodesCost
01531151
13251018
2806963
32154943
done5000939

prune286.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 12.3b

localize11.0ms

Local error

Found 4 expressions with local error:

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

rewrite3.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:
0.0ms
(cbrt re)
0.0ms
(cbrt re)
0.0ms
(cbrt re)
0.0ms
(fma (* (cbrt re) (cbrt re)) (cbrt re) (hypot re im))

series698.0ms

Counts
4 → 12
Calls
4 calls:
170.0ms
(cbrt re)
177.0ms
(cbrt re)
173.0ms
(cbrt re)
177.0ms
(fma (* (cbrt re) (cbrt re)) (cbrt re) (hypot re im))

simplify1.2s

Counts
61 → 61
Iterations

Useful iterations: 3 (41.0ms)

IterNodesCost
042372
162360
2121286
3293244
41040244
done5000244

prune179.0ms

Pruning

9 alts after pruning (6 fresh and 3 done)

Merged error: 12.3b

regimes75.0ms

Accuracy

0% (0.2b remaining)

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

bsearch0.0ms

simplify1.0ms

Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0910
11210
done1210

end0.0ms

sample706.0ms

Algorithm
intervals
Results
208.0ms5999×body80valid
142.0ms699×body2560valid
83.0ms478×body1280valid
78.0ms310×body5120valid
37.0ms288×body640valid
15.0ms151×body320valid
5.0ms75×body160valid