Details

Time bar (total: 22.3s)

sample38.0ms

Algorithm
intervals
Results
14.0ms197×body80valid
5.0ms18×body2560valid
3.0ms15×body640valid
2.0msbody5120valid
2.0msbody1280valid
1.0msbody320valid
0.0msbody160valid

simplify15.0ms

Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
01215
12410
23010
33210
done3210

prune8.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 12.6b

localize8.0ms

Local error

Found 3 expressions with local error:

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

rewrite18.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:
1.0ms
(hypot re im)
10.0ms
(sqrt (* (+ re (hypot re im)) 2.0))
6.0ms
(+ re (hypot re im))

series518.0ms

Counts
3 → 9
Calls
3 calls:
68.0ms
(hypot re im)
324.0ms
(sqrt (* (+ re (hypot re im)) 2.0))
126.0ms
(+ re (hypot re im))

simplify5.3s

Counts
51 → 51
Iterations

Useful iterations: 4 (2.5s)

IterNodesCost
086414
1187377
2459354
31219345
43260344
done5001344

prune602.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 12.3b

localize14.0ms

Local error

Found 4 expressions with local error:

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

rewrite74.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:
12.0ms
(sqrt (+ re (hypot re im)))
1.0ms
(hypot re im)
53.0ms
(* (sqrt (+ re (hypot re im))) (sqrt 2.0))
7.0ms
(+ re (hypot re im))

series633.0ms

Counts
4 → 12
Calls
4 calls:
155.0ms
(sqrt (+ re (hypot re im)))
86.0ms
(hypot re im)
297.0ms
(* (sqrt (+ re (hypot re im))) (sqrt 2.0))
95.0ms
(+ re (hypot re im))

simplify3.9s

Counts
93 → 93
Iterations

Useful iterations: done (3.9s)

IterNodesCost
0135898
1298819
2742778
31970766
done5000764

prune342.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 12.3b

localize26.0ms

Local error

Found 4 expressions with local error:

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

rewrite183.0ms

Algorithm
rewrite-expression-head
Rules
31×sqrt-prod
25×add-sqr-sqrt
18×associate-*r*
17×*-un-lft-identity
16×pow1
13×add-cube-cbrt
11×add-exp-log add-cbrt-cube
10×pow-prod-down
associate-*l*
associate-*l/ add-log-exp unswap-sqr
sqrt-pow1 pow1/2
expm1-log1p-u sqrt-div prod-exp cbrt-unprod log1p-expm1-u
fma-def flip3-+ sqrt-unprod flip-+
*-commutative distribute-lft-out
+-commutative hypot-udef sum-log
Counts
4 → 98
Calls
4 calls:
1.0ms
(hypot re im)
119.0ms
(* (* (sqrt (+ re (hypot re im))) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))
45.0ms
(* (sqrt (+ re (hypot re im))) (sqrt (sqrt 2.0)))
13.0ms
(+ re (hypot re im))

series833.0ms

Counts
4 → 12
Calls
4 calls:
66.0ms
(hypot re im)
246.0ms
(* (* (sqrt (+ re (hypot re im))) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))
426.0ms
(* (sqrt (+ re (hypot re im))) (sqrt (sqrt 2.0)))
94.0ms
(+ re (hypot re im))

simplify2.9s

Counts
110 → 110
Iterations

Useful iterations: done (2.9s)

IterNodesCost
01571408
13751181
210871086
333491074
done50001071

prune471.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 12.3b

localize17.0ms

Local error

Found 3 expressions with local error:

0.0b
(hypot re im)
0.0b
(pow (* (+ re (hypot re im)) 2.0) 1/2)
0.7b
(+ re (hypot re im))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
pow1 add-exp-log
add-sqr-sqrt add-cube-cbrt add-log-exp
expm1-log1p-u pow-unpow fma-def add-cbrt-cube log1p-expm1-u
pow-pow pow-exp
+-commutative pow-to-exp unpow-prod-down hypot-udef flip3-+ pow-prod-down prod-exp sum-log flip-+ distribute-lft-out unpow1/2 sqr-pow
Counts
3 → 47
Calls
3 calls:
0.0ms
(hypot re im)
10.0ms
(pow (* (+ re (hypot re im)) 2.0) 1/2)
9.0ms
(+ re (hypot re im))

series455.0ms

Counts
3 → 9
Calls
3 calls:
90.0ms
(hypot re im)
275.0ms
(pow (* (+ re (hypot re im)) 2.0) 1/2)
90.0ms
(+ re (hypot re im))

simplify3.3s

Counts
56 → 56
Iterations

Useful iterations: done (3.3s)

IterNodesCost
0101460
1221406
2488387
31233381
43993373
done5000372

prune166.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 6.5b

regimes94.0ms

Accuracy

22.7% (4.5b remaining)

Error of 12.1b against oracle of 7.6b and baseline of 13.4b

bsearch77.0ms

Steps
ItersRangePoint
8
-3.6480995808685326e+58
-1.5483733831917007e+54
-3.8051858965380986e+55

simplify6.0ms

Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
02329
12829
done2829

end0.0ms

sample2.3s

Algorithm
intervals
Results
827.0ms690×body2560valid
542.0ms6004×body80valid
213.0ms310×body5120valid
176.0ms474×body1280valid
124.0ms295×body640valid
77.0ms151×body320valid
50.0ms76×body160valid