Details

Time bar (total: 4.8s)

sample35.0ms

Algorithm
intervals
Results
7.0ms186×body80valid
5.0ms25×body2560valid
4.0ms256×pre80true
3.0ms19×body1280valid
3.0ms21×body640valid
0.0msbody160valid
0.0msbody320valid

simplify11.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0289
1409
2489
3509
4529
5539
6539

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 15.2b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ x (sqrt (+ (* (* 4.0 p) p) (* x x))))
0.0b
(+ (* (* 4.0 p) p) (* x x))
0.6b
(+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))
13.8b
(sqrt (+ (* (* 4.0 p) p) (* x x)))

rewrite126.0ms

Algorithm
rewrite-expression-head
Rules
23×*-un-lft-identity
22×add-sqr-sqrt
21×add-cube-cbrt
18×times-frac
15×sqrt-prod
add-log-exp
add-exp-log associate-/r* add-cbrt-cube
pow1
expm1-log1p-u fma-def flip3-+ sqrt-div flip-+ log1p-expm1-u
associate-/l*
+-commutative sum-log associate-/r/
cbrt-undiv rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 div-exp clear-num div-inv distribute-lft-out
Counts
4 → 91
Calls
4 calls:
28.0ms
(/ x (sqrt (+ (* (* 4.0 p) p) (* x x))))
16.0ms
(+ (* (* 4.0 p) p) (* x x))
52.0ms
(+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))
27.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))

series211.0ms

Counts
4 → 12
Calls
4 calls:
56.0ms
(/ x (sqrt (+ (* (* 4.0 p) p) (* x x))))
31.0ms
(+ (* (* 4.0 p) p) (* x x))
71.0ms
(+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))
53.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))

simplify157.0ms

Algorithm
egg-herbie
Counts
103 → 103
Iterations

Useful iterations: 3 (147.0ms)

IterNodesCost
0296867
11081815
24584798
35001795

prune310.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 14.9b

localize27.0ms

Local error

Found 4 expressions with local error:

1.2b
(- 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))
1.9b
(/ x (fma (* 4.0 p) p (* x x)))
13.8b
(sqrt (+ (* (* 4.0 p) p) (* x x)))
13.8b
(sqrt (+ (* (* 4.0 p) p) (* x x)))

rewrite333.0ms

Algorithm
rewrite-expression-head
Rules
88×add-sqr-sqrt
80×*-un-lft-identity
78×add-cube-cbrt
72×prod-diff
65×times-frac
34×sqrt-prod
10×sqrt-div
pow1 add-exp-log associate-/r/ add-cbrt-cube add-log-exp
flip3-+ flip-+
expm1-log1p-u log1p-expm1-u div-inv
fma-neg associate-/r* associate-/l* difference-of-squares
rem-sqrt-square sqrt-pow1 pow1/2
cbrt-undiv sub-neg flip3-- frac-2neg diff-log div-exp clear-num flip-- distribute-lft-out--
Counts
4 → 156
Calls
4 calls:
273.0ms
(- 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))
4.0ms
(/ x (fma (* 4.0 p) p (* x x)))
26.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))
23.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))

series228.0ms

Counts
4 → 12
Calls
4 calls:
69.0ms
(- 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))
52.0ms
(/ x (fma (* 4.0 p) p (* x x)))
50.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))
56.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))

simplify82.0ms

Algorithm
egg-herbie
Counts
168 → 168
Iterations

Useful iterations: 2 (50.0ms)

IterNodesCost
06824617
122563256
250012931

prune602.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 14.9b

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* (* 4.0 p) p) (* x x))
0.2b
(* x (/ 1 (sqrt (+ (* (* 4.0 p) p) (* x x)))))
3.3b
(+ 1.0 (* x (/ 1 (sqrt (+ (* (* 4.0 p) p) (* x x))))))
13.8b
(sqrt (+ (* (* 4.0 p) p) (* x x)))

rewrite121.0ms

Algorithm
rewrite-expression-head
Rules
33×add-sqr-sqrt
24×associate-*r*
22×*-un-lft-identity times-frac
20×add-cube-cbrt
14×sqrt-prod
13×add-exp-log
add-cbrt-cube
add-log-exp
pow1
unswap-sqr
expm1-log1p-u fma-def flip3-+ sqrt-div prod-exp flip-+ log1p-expm1-u
associate-*l*
+-commutative div-exp sum-log associate-/r/ cbrt-unprod
cbrt-undiv rem-sqrt-square rec-exp sqrt-pow1 pow1/2 1-exp associate-*r/ pow-prod-down un-div-inv *-commutative div-inv
Counts
4 → 98
Calls
4 calls:
17.0ms
(+ (* (* 4.0 p) p) (* x x))
70.0ms
(* x (/ 1 (sqrt (+ (* (* 4.0 p) p) (* x x)))))
6.0ms
(+ 1.0 (* x (/ 1 (sqrt (+ (* (* 4.0 p) p) (* x x))))))
25.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))

series199.0ms

Counts
4 → 12
Calls
4 calls:
33.0ms
(+ (* (* 4.0 p) p) (* x x))
47.0ms
(* x (/ 1 (sqrt (+ (* (* 4.0 p) p) (* x x)))))
68.0ms
(+ 1.0 (* x (/ 1 (sqrt (+ (* (* 4.0 p) p) (* x x))))))
52.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))

simplify56.0ms

Algorithm
egg-herbie
Counts
110 → 110
Iterations

Useful iterations: 2 (47.0ms)

IterNodesCost
0405867
11999779
25001742

prune320.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 14.8b

localize15.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ x (fabs (cbrt (+ (* (* 4.0 p) p) (* x x)))))
6.9b
(+ 1.0 (/ (/ x (fabs (cbrt (+ (* (* 4.0 p) p) (* x x))))) (sqrt (cbrt (+ (* (* 4.0 p) p) (* x x))))))
14.5b
(cbrt (+ (* (* 4.0 p) p) (* x x)))
14.5b
(cbrt (+ (* (* 4.0 p) p) (* x x)))

rewrite116.0ms

Algorithm
rewrite-expression-head
Rules
17×*-un-lft-identity
15×add-sqr-sqrt add-cube-cbrt
times-frac
add-exp-log cbrt-prod add-cbrt-cube add-log-exp
pow1 expm1-log1p-u cbrt-div log1p-expm1-u
fma-def flip3-+ associate-/r* flip-+ associate-/l*
pow1/3
cbrt-undiv +-commutative frac-2neg div-exp clear-num sum-log div-inv distribute-lft-out
Counts
4 → 76
Calls
4 calls:
5.0ms
(/ x (fabs (cbrt (+ (* (* 4.0 p) p) (* x x)))))
81.0ms
(+ 1.0 (/ (/ x (fabs (cbrt (+ (* (* 4.0 p) p) (* x x))))) (sqrt (cbrt (+ (* (* 4.0 p) p) (* x x))))))
15.0ms
(cbrt (+ (* (* 4.0 p) p) (* x x)))
13.0ms
(cbrt (+ (* (* 4.0 p) p) (* x x)))

series409.0ms

Counts
4 → 12
Calls
4 calls:
31.0ms
(/ x (fabs (cbrt (+ (* (* 4.0 p) p) (* x x)))))
144.0ms
(+ 1.0 (/ (/ x (fabs (cbrt (+ (* (* 4.0 p) p) (* x x))))) (sqrt (cbrt (+ (* (* 4.0 p) p) (* x x))))))
118.0ms
(cbrt (+ (* (* 4.0 p) p) (* x x)))
115.0ms
(cbrt (+ (* (* 4.0 p) p) (* x x)))

simplify45.0ms

Algorithm
egg-herbie
Counts
88 → 88
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
04061075
11472979
25002968

prune367.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 14.8b

regimes148.0ms

Accuracy

0% (1.6b remaining)

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

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04550
14550

end0.0ms

sample870.0ms

Algorithm
intervals
Results
207.0ms6023×body80valid
182.0ms814×body2560valid
110.0ms639×body1280valid
105.0ms8000×pre80true
41.0ms305×body640valid
14.0ms143×body320valid
5.0ms76×body160valid