Details

Time bar (total: 9.5s)

sample31.0ms

Algorithm
intervals
Results
16.0ms100×body1280valid
4.0ms133×body80valid
2.0ms14×body640valid
0.0msbody320valid
0.0msbody160valid

simplify11.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0196
1266
2336
3356
4416
5446
6446

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 12.3b

localize8.0ms

Local error

Found 2 expressions with local error:

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

rewrite9.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt *-un-lft-identity
18×add-cube-cbrt
12×prod-diff
times-frac
add-exp-log add-cbrt-cube add-log-exp
fma-neg associate-/r* sqrt-prod associate-/l*
pow1 expm1-log1p-u log1p-expm1-u
cbrt-undiv sub-neg flip3-- frac-2neg diff-log div-exp clear-num flip-- div-inv distribute-lft-out-- difference-of-squares
Counts
2 → 60
Calls
2 calls:
3.0ms
(/ 1.0 (hypot 1.0 x))
4.0ms
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))

series468.0ms

Counts
2 → 6
Calls
2 calls:
105.0ms
(/ 1.0 (hypot 1.0 x))
363.0ms
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))

simplify52.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
0422844
11629601
25001599

prune182.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 11.7b

localize12.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)) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
0.0b
(/ 1.0 (hypot 1.0 x))
0.0b
(/ 1.0 (hypot 1.0 x))
1.2b
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

rewrite18.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:
8.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)))))))
3.0ms
(/ 1.0 (hypot 1.0 x))
3.0ms
(/ 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:
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)))))))
104.0ms
(/ 1.0 (hypot 1.0 x))
111.0ms
(/ 1.0 (hypot 1.0 x))
151.0ms
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

simplify93.0ms

Algorithm
egg-herbie
Counts
115 → 115
Iterations

Useful iterations: 2 (77.0ms)

IterNodesCost
07641571
135391461
250011448

prune448.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.0b

localize14.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 (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))
1.2b
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
36×add-sqr-sqrt *-un-lft-identity
32×times-frac
29×add-cube-cbrt
18×associate-*r*
17×add-exp-log
13×add-cbrt-cube
pow1 associate-/r* associate-/l*
expm1-log1p-u div-exp prod-exp log1p-expm1-u add-log-exp
cbrt-undiv associate-*l* div-inv distribute-lft-out unswap-sqr
frac-2neg clear-num associate-/r/ cbrt-unprod
rec-exp flip3-+ 1-exp associate-*r/ pow-prod-down un-div-inv *-commutative flip-+ fma-udef
Counts
4 → 111
Calls
4 calls:
3.0ms
(/ 1.0 (hypot 1.0 x))
3.0ms
(/ 1.0 (hypot 1.0 x))
10.0ms
(* (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0)) (/ 1 (+ 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:
112.0ms
(/ 1.0 (hypot 1.0 x))
107.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 (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))
156.0ms
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

simplify108.0ms

Algorithm
egg-herbie
Counts
123 → 123
Iterations

Useful iterations: 2 (92.0ms)

IterNodesCost
08601600
141581445
250011434

prune462.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.0b

localize16.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)))))))) (/ 1 (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))))
0.5b
(/ 1 (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))
1.2b
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

rewrite50.0ms

Algorithm
rewrite-expression-head
Rules
102×add-sqr-sqrt
94×times-frac
82×*-un-lft-identity
56×add-cube-cbrt
51×sqrt-prod
32×add-exp-log
27×associate-*r* associate-*l*
20×add-cbrt-cube
15×unswap-sqr
11×div-exp
10×associate-/r* distribute-lft-out
pow1 prod-exp
cbrt-undiv sqrt-div associate-/r/ associate-/l*
expm1-log1p-u cbrt-unprod log1p-expm1-u div-inv add-log-exp
rec-exp pow-flip flip3-+ 1-exp flip-+
frac-2neg clear-num
frac-times sqrt-pow1 pow1/2 associate-*r/ pow-prod-down associate-*l/ un-div-inv *-commutative fma-udef inv-pow
Counts
4 → 188
Calls
4 calls:
8.0ms
(/ 1.0 (hypot 1.0 x))
25.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 (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))))
7.0ms
(/ 1 (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))

series2.6s

Counts
4 → 12
Calls
4 calls:
111.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)))))))) (/ 1 (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))))
1.1s
(/ 1 (sqrt (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))))
160.0ms
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

simplify65.0ms

Algorithm
egg-herbie
Counts
200 → 200
Iterations

Useful iterations: 1 (28.0ms)

IterNodesCost
012664384
150024037

prune637.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0b

regimes138.0ms

Accuracy

99.1% (0.1b remaining)

Error of 0.3b against oracle of 0.2b and baseline of 15.1b

bsearch1.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04545
14545

end0.0ms

sample824.0ms

Algorithm
intervals
Results
469.0ms2846×body1280valid
122.0ms4041×body80valid
81.0ms622×body640valid
33.0ms341×body320valid
9.0ms150×body160valid