Details

Time bar (total: 3.7s)

sample30.0ms

Algorithm
intervals
Results
9.0ms186×body80valid
4.0ms22×body2560valid
3.0ms19×body1280valid
2.0ms11×body5120valid
1.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify9.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0198
1288
2368
3448
4468
5468
done468

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 40.3b

localize10.0ms

Local error

Found 3 expressions with local error:

0.3b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
1.5b
(- (sqrt (+ (* re re) (* im im))) re)
29.6b
(sqrt (+ (* re re) (* im im)))

rewrite108.0ms

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt
20×*-un-lft-identity
18×add-cube-cbrt prod-diff
17×sqrt-prod
pow1
fma-neg
add-log-exp
sqrt-div
add-exp-log expm1-log1p-u sqrt-pow1 add-cbrt-cube log1p-expm1-u
flip3-- pow1/2 associate-*r/ flip-- difference-of-squares
sub-neg rem-sqrt-square flip3-+ diff-log pow-prod-down flip-+ hypot-def distribute-lft-out--
Counts
3 → 74
Calls
3 calls:
51.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
47.0ms
(- (sqrt (+ (* re re) (* im im))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))

series251.0ms

Counts
3 → 9
Calls
3 calls:
165.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
49.0ms
(- (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify43.0ms

Counts
83 → 83
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0314760
11192522
25001473
done5001473

prune182.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 7.9b

localize8.0ms

Local error

Found 3 expressions with local error:

0.0b
(hypot re im)
0.3b
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
1.5b
(- (hypot re im) re)

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt *-un-lft-identity
10×add-cube-cbrt
prod-diff
pow1
add-log-exp
add-exp-log expm1-log1p-u fma-neg add-cbrt-cube log1p-expm1-u
sqrt-pow1 sqrt-div associate-*r/
sub-neg hypot-udef flip3-- flip3-+ pow1/2 diff-log pow-prod-down sqrt-prod flip-- flip-+ distribute-lft-out-- difference-of-squares
Counts
3 → 53
Calls
3 calls:
0.0ms
(hypot re im)
20.0ms
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
6.0ms
(- (hypot re im) re)

series288.0ms

Counts
3 → 9
Calls
3 calls:
49.0ms
(hypot re im)
180.0ms
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
59.0ms
(- (hypot re im) re)

simplify45.0ms

Counts
62 → 62
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0283345
11118247
25001236
done5001236

prune154.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 7.7b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot re im)
0.0b
(sqrt (- (hypot re im) re))
0.3b
(* (sqrt 2.0) (sqrt (- (hypot re im) re)))
1.5b
(- (hypot re im) re)

rewrite42.0ms

Algorithm
rewrite-expression-head
Rules
31×add-sqr-sqrt
22×*-un-lft-identity
17×sqrt-prod
16×add-cube-cbrt
pow1 prod-diff
associate-*r*
add-exp-log associate-*l* add-cbrt-cube add-log-exp
expm1-log1p-u sqrt-div log1p-expm1-u unswap-sqr
flip3-- sqrt-pow1 pow1/2 fma-neg pow-prod-down flip-- distribute-lft-out-- difference-of-squares
associate-*r/
sub-neg rem-sqrt-square hypot-udef sqrt-unprod diff-log prod-exp *-commutative cbrt-unprod
Counts
4 → 93
Calls
4 calls:
0.0ms
(hypot re im)
9.0ms
(sqrt (- (hypot re im) re))
24.0ms
(* (sqrt 2.0) (sqrt (- (hypot re im) re)))
6.0ms
(- (hypot re im) re)

series416.0ms

Counts
4 → 12
Calls
4 calls:
49.0ms
(hypot re im)
123.0ms
(sqrt (- (hypot re im) re))
183.0ms
(* (sqrt 2.0) (sqrt (- (hypot re im) re)))
60.0ms
(- (hypot re im) re)

simplify41.0ms

Counts
105 → 105
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0348614
11286509
25002488
done5002488

prune247.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 7.6b

localize13.0ms

Local error

Found 4 expressions with local error:

0.3b
(sqrt (* 2.0 (+ (* (sqrt (- (hypot re im) re)) (sqrt (- (hypot re im) re))) 0)))
0.4b
(* (sqrt (- (hypot re im) re)) (sqrt (- (hypot re im) re)))
1.5b
(- (hypot re im) re)
1.5b
(- (hypot re im) re)

rewrite83.0ms

Algorithm
rewrite-expression-head
Rules
50×add-sqr-sqrt
44×*-un-lft-identity
31×sqrt-prod
26×add-cube-cbrt
22×pow1
18×prod-diff
14×sqrt-div
12×swap-sqr
10×sqrt-pow1
pow1/2
flip3-- associate-*r* associate-*l* flip-- distribute-lft-out-- add-log-exp
add-exp-log fma-neg add-cbrt-cube difference-of-squares
pow-prod-up
expm1-log1p-u frac-times associate-*r/ pow-prod-down log1p-expm1-u unswap-sqr
pow-sqr
sub-neg diff-log associate-*l/
pow2 flip3-+ pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod flip-+
Counts
4 → 138
Calls
4 calls:
27.0ms
(sqrt (* 2.0 (+ (* (sqrt (- (hypot re im) re)) (sqrt (- (hypot re im) re))) 0)))
38.0ms
(* (sqrt (- (hypot re im) re)) (sqrt (- (hypot re im) re)))
6.0ms
(- (hypot re im) re)
6.0ms
(- (hypot re im) re)

series355.0ms

Counts
4 → 12
Calls
4 calls:
179.0ms
(sqrt (* 2.0 (+ (* (sqrt (- (hypot re im) re)) (sqrt (- (hypot re im) re))) 0)))
60.0ms
(* (sqrt (- (hypot re im) re)) (sqrt (- (hypot re im) re)))
56.0ms
(- (hypot re im) re)
60.0ms
(- (hypot re im) re)

simplify79.0ms

Counts
150 → 150
Iterations

Useful iterations: 2 (68.0ms)

IterNodesCost
0377983
11654768
25002755
done5002755

prune313.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 7.6b

regimes101.0ms

Accuracy

-8.8% (6.5b remaining)

Error of 14.1b against oracle of 7.6b and baseline of 13.5b

bsearch175.0ms

Steps
ItersRangePoint
9
4.310439048164553e+59
9.389232274922462e+67
1.2960687720432806e+60
7
1.0234318601461633e-26
1.380851535651534e-24
2.3641995363355918e-26
9
3.3591430669182463e-102
1.1893945553223457e-95
3.3970012564759815e-102
9
2.6119986309082814e-155
2.5989129199139394e-149
2.5608629010698907e-149

simplify4.0ms

Iterations

Useful iterations: 2 (1.0ms)

IterNodesCost
04134
14834
25414
35714
46314
57414
68114
78214
88214
done8214

end0.0ms

sample700.0ms

Algorithm
intervals
Results
191.0ms5982×body80valid
136.0ms731×body2560valid
79.0ms518×body1280valid
59.0ms274×body5120valid
30.0ms270×body640valid
13.0ms149×body320valid
4.0ms76×body160valid