Details

Time bar (total: 8.2s)

sample30.0ms

Algorithm
intervals
Results
15.0ms98×body1280valid
3.0ms123×body80valid
3.0ms21×body640valid
1.0ms10×body320valid
0.0msbody160valid

simplify10.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: 14.9b

localize7.0ms

Local error

Found 3 expressions with local error:

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

rewrite14.0ms

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

series708.0ms

Counts
3 → 9
Calls
3 calls:
100.0ms
(/ 1.0 (hypot 1.0 x))
257.0ms
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
351.0ms
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))

simplify56.0ms

Algorithm
egg-herbie
Counts
84 → 84
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
04881022
11852782
25003780

prune216.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 14.3b

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

rewrite13.0ms

Algorithm
rewrite-expression-head
Rules
32×*-un-lft-identity
22×add-sqr-sqrt add-cube-cbrt
21×times-frac
add-exp-log add-cbrt-cube
associate-/r*
associate-/l* add-log-exp
distribute-lft-out
pow1 expm1-log1p-u log1p-expm1-u
fma-def
cbrt-undiv frac-2neg flip3-+ div-exp clear-num associate-/r/ flip-+ div-inv
+-commutative sum-log fma-udef
Counts
4 → 91
Calls
4 calls:
2.0ms
(/ 1.0 (hypot 1.0 x))
6.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 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))
0.0ms
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

series2.0s

Counts
4 → 12
Calls
4 calls:
104.0ms
(/ 1.0 (hypot 1.0 x))
1.4s
(/ (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)))))))
320.0ms
(+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))
154.0ms
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

simplify94.0ms

Algorithm
egg-herbie
Counts
103 → 103
Iterations

Useful iterations: 2 (78.0ms)

IterNodesCost
08671615
139601498
250011488

prune390.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.3b

localize15.0ms

Local error

Found 4 expressions with local error:

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

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
43×*-un-lft-identity
28×times-frac
25×add-sqr-sqrt add-cube-cbrt
24×log-pow
18×exp-prod
10×pow1
distribute-lft-out
associate-/l*
add-exp-log add-cbrt-cube add-log-exp
expm1-log1p-u log-prod associate-/r* log1p-expm1-u
fma-def
flip3-+ associate-/r/ flip-+ fma-udef
cbrt-undiv +-commutative frac-2neg div-exp rem-log-exp exp-sum clear-num sum-log div-inv
Counts
4 → 100
Calls
4 calls:
9.0ms
(/ (log (exp (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 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))
0.0ms
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))
1.0ms
(log (exp (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))))

series1.9s

Counts
4 → 12
Calls
4 calls:
1.3s
(/ (log (exp (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)))))))
331.0ms
(+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))
161.0ms
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))
156.0ms
(log (exp (fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))))

simplify96.0ms

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 2 (75.0ms)

IterNodesCost
08122187
135392005
250031993

prune401.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.3b

localize24.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma 0.5 (/ (sqrt 0.5) (* x (sqrt 1.0))) (- (fma (sqrt 1.0) (sqrt 0.5) 1.0) (* 0.125 (/ (sqrt 0.5) (* (pow x 2) (pow (sqrt 1.0) 3))))))
0.5b
(/ (sqrt 0.5) (* x (sqrt 1.0)))
0.6b
(/ (sqrt 0.5) (* (pow x 2) (pow (sqrt 1.0) 3)))
1.0b
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
32×add-exp-log
14×add-cbrt-cube
12×add-sqr-sqrt add-cube-cbrt *-un-lft-identity times-frac div-exp sqrt-prod associate-/l*
10×prod-exp
pow-to-exp pow-exp
pow1 cbrt-undiv expm1-log1p-u log1p-expm1-u add-log-exp
frac-2neg clear-num associate-/r* cbrt-unprod fma-udef div-inv
Counts
4 → 86
Calls
4 calls:
0.0ms
(fma 0.5 (/ (sqrt 0.5) (* x (sqrt 1.0))) (- (fma (sqrt 1.0) (sqrt 0.5) 1.0) (* 0.125 (/ (sqrt 0.5) (* (pow x 2) (pow (sqrt 1.0) 3))))))
4.0ms
(/ (sqrt 0.5) (* x (sqrt 1.0)))
7.0ms
(/ (sqrt 0.5) (* (pow x 2) (pow (sqrt 1.0) 3)))
0.0ms
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

series621.0ms

Counts
4 → 12
Calls
4 calls:
221.0ms
(fma 0.5 (/ (sqrt 0.5) (* x (sqrt 1.0))) (- (fma (sqrt 1.0) (sqrt 0.5) 1.0) (* 0.125 (/ (sqrt 0.5) (* (pow x 2) (pow (sqrt 1.0) 3))))))
95.0ms
(/ (sqrt 0.5) (* x (sqrt 1.0)))
147.0ms
(/ (sqrt 0.5) (* (pow x 2) (pow (sqrt 1.0) 3)))
158.0ms
(fma (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))) (* 1.0 1.0))

simplify48.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 1 (10.0ms)

IterNodesCost
0388872
11622777
25001777

prune404.0ms

Pruning

3 alts after pruning (1 fresh and 2 done)

Merged error: 0.3b

regimes112.0ms

Accuracy

98.9% (0.2b remaining)

Error of 0.4b against oracle of 0.2b and baseline of 14.7b

bsearch177.0ms

Steps
ItersRangePoint
10
5.968040026638966e-05
117627206.70733242
0.5216864221254912
10
-64880754058.88788
-2.651420353119469e-05
-0.0030391710919177024

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06159
16159

end0.0ms

sample800.0ms

Algorithm
intervals
Results
462.0ms2909×body1280valid
110.0ms4022×body80valid
89.0ms621×body640valid
25.0ms293×body320valid
8.0ms155×body160valid