Details

Time bar (total: 16.8s)

sample220.0ms

Algorithm
intervals
Results
39.0ms15×body1280valid
21.0ms189×body80valid
15.0ms26×body2560valid
5.0ms14×body640valid
3.0msbody5120valid
1.0msbody320valid
1.0msbody160valid

simplify152.0ms

Counts
1 → 1
Iterations

Useful iterations: 1 (118.0ms)

IterNodesCost
01215
11910
22810
33610
44310
54510
done4510

prune12.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 14.9b

localize20.0ms

Local error

Found 2 expressions with local error:

0.0b
(sqrt (* (- (hypot re im) re) 2.0))
0.9b
(- (hypot re im) re)

rewrite41.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt *-un-lft-identity
add-cube-cbrt prod-diff
pow1
add-log-exp
fma-neg
add-exp-log expm1-log1p-u flip3-- sqrt-pow1 sqrt-div associate-*l/ add-cbrt-cube flip-- log1p-expm1-u
sub-neg pow1/2 diff-log pow-prod-down sqrt-prod distribute-lft-out-- difference-of-squares
Counts
2 → 43
Calls
2 calls:
15.0ms
(sqrt (* (- (hypot re im) re) 2.0))
15.0ms
(- (hypot re im) re)

series558.0ms

Counts
2 → 6
Calls
2 calls:
435.0ms
(sqrt (* (- (hypot re im) re) 2.0))
123.0ms
(- (hypot re im) re)

simplify2.7s

Counts
49 → 49
Iterations

Useful iterations: 3 (1.1s)

IterNodesCost
0107626
1235523
2751446
34110402
done5000402

prune230.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 14.7b

localize27.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (hypot re im))
0.0b
(sqrt (hypot re im))
0.0b
(sqrt (* (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re)) 2.0))
16.3b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
pow1
add-sqr-sqrt
sqrt-prod
add-cube-cbrt *-un-lft-identity
add-exp-log expm1-log1p-u sqrt-pow1 add-cbrt-cube log1p-expm1-u add-log-exp
pow1/2
rem-sqrt-square
pow-prod-down fma-udef
Counts
4 → 53
Calls
4 calls:
3.0ms
(sqrt (hypot re im))
3.0ms
(sqrt (hypot re im))
10.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))

series836.0ms

Counts
4 → 12
Calls
4 calls:
120.0ms
(sqrt (hypot re im))
134.0ms
(sqrt (hypot re im))
360.0ms
(sqrt (* (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re)) 2.0))
222.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (- re))

simplify3.4s

Counts
65 → 65
Iterations

Useful iterations: 3 (1.3s)

IterNodesCost
093753
1201559
2741486
34481469
done5000469

prune408.0ms

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 14.6b

localize34.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (sqrt (hypot re im)))
0.1b
(sqrt (sqrt (hypot re im)))
0.5b
(* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im))))
16.3b
(fma (sqrt (hypot re im)) (* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im)))) (- re))

rewrite76.0ms

Algorithm
rewrite-expression-head
Rules
86×sqrt-prod
54×add-sqr-sqrt
40×sqrt-pow1
31×pow1
20×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
associate-*r* associate-*l* pow-prod-up unswap-sqr
add-exp-log add-cbrt-cube
pow-prod-down pow-sqr
expm1-log1p-u rem-sqrt-square log1p-expm1-u add-log-exp
pow2 pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod fma-udef
Counts
4 → 129
Calls
4 calls:
5.0ms
(sqrt (sqrt (hypot re im)))
5.0ms
(sqrt (sqrt (hypot re im)))
54.0ms
(* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im))))
1.0ms
(fma (sqrt (hypot re im)) (* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im)))) (- re))

series644.0ms

Counts
4 → 12
Calls
4 calls:
170.0ms
(sqrt (sqrt (hypot re im)))
159.0ms
(sqrt (sqrt (hypot re im)))
133.0ms
(* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im))))
182.0ms
(fma (sqrt (hypot re im)) (* (sqrt (sqrt (hypot re im))) (sqrt (sqrt (hypot re im)))) (- re))

simplify1.4s

Counts
141 → 141
Iterations

Useful iterations: done (1.4s)

IterNodesCost
01321875
12861027
21380942
done5000932

prune594.0ms

Pruning

9 alts after pruning (6 fresh and 3 done)

Merged error: 14.6b

localize44.0ms

Local error

Found 4 expressions with local error:

0.4b
(* (sqrt (fabs (cbrt (hypot re im)))) (sqrt (sqrt (hypot re im))))
0.6b
(cbrt (hypot re im))
0.6b
(cbrt (hypot re im))
16.3b
(fma (sqrt (hypot re im)) (* (* (sqrt (fabs (cbrt (hypot re im)))) (sqrt (sqrt (hypot re im)))) (sqrt (sqrt (cbrt (hypot re im))))) (- re))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt
21×sqrt-prod
11×add-cube-cbrt *-un-lft-identity
associate-*r*
pow1
add-exp-log cbrt-prod associate-*l* add-cbrt-cube unswap-sqr
expm1-log1p-u log1p-expm1-u add-log-exp
pow-prod-down
sqrt-pow1 pow1/2 pow1/3
sqrt-unprod prod-exp *-commutative cbrt-unprod fma-udef
Counts
4 → 73
Calls
4 calls:
20.0ms
(* (sqrt (fabs (cbrt (hypot re im)))) (sqrt (sqrt (hypot re im))))
1.0ms
(cbrt (hypot re im))
1.0ms
(cbrt (hypot re im))
0.0ms
(fma (sqrt (hypot re im)) (* (* (sqrt (fabs (cbrt (hypot re im)))) (sqrt (sqrt (hypot re im)))) (sqrt (sqrt (cbrt (hypot re im))))) (- re))

series800.0ms

Counts
4 → 12
Calls
4 calls:
204.0ms
(* (sqrt (fabs (cbrt (hypot re im)))) (sqrt (sqrt (hypot re im))))
146.0ms
(cbrt (hypot re im))
161.0ms
(cbrt (hypot re im))
289.0ms
(fma (sqrt (hypot re im)) (* (* (sqrt (fabs (cbrt (hypot re im)))) (sqrt (sqrt (hypot re im)))) (sqrt (sqrt (cbrt (hypot re im))))) (- re))

simplify993.0ms

Counts
85 → 85
Iterations

Useful iterations: done (989.0ms)

IterNodesCost
01481367
13231297
213121151
done50001126

prune809.0ms

Pruning

13 alts after pruning (10 fresh and 3 done)

Merged error: 14.6b

regimes281.0ms

Accuracy

0% (0.2b remaining)

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

bsearch0.0ms

simplify5.0ms

Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0910
11110
done1110

end0.0ms

sample2.4s

Algorithm
intervals
Results
1.1s5998×body80valid
375.0ms726×body2560valid
357.0ms505×body1280valid
166.0ms299×body5120valid
78.0ms277×body640valid
25.0ms122×body320valid
10.0ms73×body160valid