Details

Time bar (total: 1.2m)

sample36.0ms

Algorithm
intervals
Results
19.0ms94×body1280valid
4.0ms118×body80valid
3.0ms23×body640valid
2.0ms18×body320valid
0.0msbody160valid

simplify17.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0196
1266
2336
3356
4416
5446
6446

prune2.0ms

Filtered
1 candidates to 0 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 18.1b

Counts
2 → 1

localize8.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ 1.0 (/ 1.0 (hypot 1.0 x)))
0.0b
(/ 1.0 (hypot 1.0 x))
0.0b
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
1.6b
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
63×add-sqr-sqrt
57×*-un-lft-identity
54×sqrt-prod
48×prod-diff
45×add-cube-cbrt
16×associate-*r*
12×associate-*l*
times-frac
add-log-exp
pow1
add-exp-log add-cbrt-cube unswap-sqr
distribute-lft-out
expm1-log1p-u *-commutative log1p-expm1-u
fma-def fma-neg associate-/r* associate-/l* difference-of-squares
rem-sqrt-square sqrt-pow1 flip3-+ sqrt-div associate-*r/ flip-+
cbrt-undiv +-commutative sub-neg flip3-- frac-2neg pow1/2 diff-log div-exp pow-prod-down clear-num sum-log flip-- div-inv distribute-lft-out--
Counts
4 → 144
Calls
4 calls:
6.0ms
(+ 1.0 (/ 1.0 (hypot 1.0 x)))
3.0ms
(/ 1.0 (hypot 1.0 x))
9.0ms
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
13.0ms
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))

series832.0ms

Counts
4 → 12
Calls
4 calls:
105.0ms
(+ 1.0 (/ 1.0 (hypot 1.0 x)))
103.0ms
(/ 1.0 (hypot 1.0 x))
265.0ms
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
358.0ms
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))

simplify96.0ms

Algorithm
egg-herbie
Counts
156 → 156
Iterations

Useful iterations: 2 (69.0ms)

IterNodesCost
07012458
125031886
250021856

prune264.0ms

Filtered
156 candidates to 104 candidates (33.3%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New1524156
Fresh000
Picked101
Done000
Total1534157

Merged error: 17.4b

Counts
157 → 4

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1.0 (hypot 1.0 x))
0.0b
(/ 1.0 (hypot 1.0 x))
0.0b
(/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
1.1b
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
37×*-un-lft-identity
30×times-frac
29×add-sqr-sqrt add-cube-cbrt
10×add-exp-log associate-/r* add-cbrt-cube
associate-/l*
pow1 expm1-log1p-u log1p-expm1-u distribute-lft-out add-log-exp
cbrt-undiv frac-2neg div-exp clear-num div-inv
associate-/r/
flip3-+ flip-+ fma-udef
Counts
4 → 103
Calls
4 calls:
3.0ms
(/ 1.0 (hypot 1.0 x))
3.0ms
(/ 1.0 (hypot 1.0 x))
12.0ms
(/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
1.0ms
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

series1.6s

Counts
4 → 12
Calls
4 calls:
113.0ms
(/ 1.0 (hypot 1.0 x))
108.0ms
(/ 1.0 (hypot 1.0 x))
1.2s
(/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
155.0ms
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

simplify107.0ms

Algorithm
egg-herbie
Counts
115 → 115
Iterations

Useful iterations: 2 (89.0ms)

IterNodesCost
07581571
134461461
250011447

prune344.0ms

Filtered
115 candidates to 97 candidates (15.7%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New1123115
Fresh213
Picked101
Done000
Total1154119

Merged error: 0.2b

Counts
119 → 4

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1.0 (hypot 1.0 x))
0.0b
(/ (/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))
0.0b
(/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))
1.1b
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

rewrite72.0ms

Algorithm
rewrite-expression-head
Rules
387×times-frac
313×*-un-lft-identity
228×sqrt-prod
199×add-sqr-sqrt add-cube-cbrt
57×distribute-lft-out
36×associate-/l*
24×associate-/r*
20×sqrt-div associate-/r/
13×add-exp-log add-cbrt-cube associate-/l/
11×div-inv
10×flip3-+ flip-+
cbrt-undiv div-exp
pow1 expm1-log1p-u frac-2neg clear-num log1p-expm1-u add-log-exp
fma-udef
Counts
4 → 340
Calls
4 calls:
3.0ms
(/ 1.0 (hypot 1.0 x))
35.0ms
(/ (/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))
14.0ms
(/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))
1.0ms
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

series3.3s

Counts
4 → 12
Calls
4 calls:
113.0ms
(/ 1.0 (hypot 1.0 x))
1.2s
(/ (/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))
1.8s
(/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))
167.0ms
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

simplify158.0ms

Algorithm
egg-herbie
Counts
352 → 352
Iterations

Useful iterations: 1 (43.0ms)

IterNodesCost
0156411709
1500111040

prune729.0ms

Filtered
352 candidates to 171 candidates (51.4%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New3502352
Fresh123
Picked101
Done000
Total3524356

Merged error: 0.2b

Counts
356 → 4

localize24.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))
0.4b
(/ (/ (/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))) (sqrt (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))) (sqrt (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))))
0.5b
(/ (/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))) (sqrt (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))))
1.1b
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

rewrite627.0ms

Algorithm
rewrite-expression-head
Rules
8583×times-frac
8121×sqrt-prod
5504×*-un-lft-identity
3554×add-sqr-sqrt add-cube-cbrt
975×distribute-lft-out
339×associate-/l*
298×sqrt-div
272×associate-/r/
136×flip3-+ flip-+ div-inv
79×associate-/l/
51×associate-/r*
20×add-exp-log add-cbrt-cube
10×cbrt-undiv div-exp
frac-2neg clear-num
pow1 expm1-log1p-u log1p-expm1-u add-log-exp
fma-udef
Counts
4 → 3514
Calls
4 calls:
22.0ms
(/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))
133.0ms
(/ (/ (/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))) (sqrt (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))) (sqrt (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))))
34.0ms
(/ (/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))) (sqrt (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))))
1.0ms
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

series53.8s

Counts
4 → 12
Calls
4 calls:
1.9s
(/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))
1.3s
(/ (/ (/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))) (sqrt (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))) (sqrt (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))))
50.2s
(/ (/ (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))) (sqrt (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))))
377.0ms
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

simplify2.0s

Algorithm
egg-herbie
Counts
3526 → 3526
Iterations

Useful iterations: 0 (52.0ms)

IterNodesCost
05001220333

prune8.3s

Filtered
3526 candidates to 1413 candidates (59.9%)
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New352513526
Fresh123
Picked011
Done000
Total352643530

Merged error: 0.2b

Counts
3530 → 4

regimes295.0ms

Accuracy

99.9% (0.0b remaining)

Error of 0.2b against oracle of 0.2b and baseline of 15.2b

bsearch167.0ms

Steps
ItersRangePoint
9
0.0004381094517774334
96283.49646244562
0.0010397661864234718
10
-0.010589856477353462
-1.985499863706084e-13
-0.0030558933983024033

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
05268
15268

end0.0ms

sample874.0ms

Algorithm
intervals
Results
496.0ms2830×body1280valid
125.0ms4035×body80valid
90.0ms640×body640valid
30.0ms327×body320valid
14.0ms168×body160valid