Details

Time bar (total: 5.5s)

sample44.0ms

Algorithm
intervals
Results
10.0ms193×body80valid
8.0ms26×body2560valid
5.0ms256×pre80true
5.0ms19×body1280valid
2.0ms11×body640valid
1.0msbody320valid
0.0msbody160valid

simplify11.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0279
1349
2389
3409
4419
5419

prune3.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 14.0b

Counts
2 → 1

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (* 0.5 (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))))
0.0b
(/ x (sqrt (+ (* (* 4.0 p) p) (* x x))))
0.4b
(+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))
13.5b
(sqrt (+ (* (* 4.0 p) p) (* x x)))

rewrite47.0ms

Algorithm
rewrite-expression-head
Rules
22×*-un-lft-identity
21×add-sqr-sqrt
20×add-cube-cbrt
18×times-frac
16×sqrt-prod
pow1
add-exp-log sqrt-div associate-/r* add-cbrt-cube add-log-exp
flip3-+ flip-+
sqrt-pow1 associate-/l*
pow1/2 associate-*r/ associate-/r/
cbrt-undiv +-commutative rem-sqrt-square frac-2neg div-exp pow-prod-down clear-num sum-log div-inv distribute-lft-out
Counts
4 → 81
Calls
4 calls:
13.0ms
(sqrt (* 0.5 (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))))
8.0ms
(/ x (sqrt (+ (* (* 4.0 p) p) (* x x))))
18.0ms
(+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))
5.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))

series492.0ms

Counts
4 → 12
Calls
4 calls:
293.0ms
(sqrt (* 0.5 (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))))
60.0ms
(/ x (sqrt (+ (* (* 4.0 p) p) (* x x))))
81.0ms
(+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))
57.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))

simplify77.0ms

Algorithm
egg-herbie
Counts
93 → 93
Iterations

Useful iterations: 3 (66.0ms)

IterNodesCost
0280888
1816840
22486828
35001827

prune271.0ms

Filtered
93 candidates to 71 candidates (76.3%)
Pruning

13 alts after pruning (13 fresh and 0 done)

PrunedKeptTotal
New801393
Fresh000
Picked101
Done000
Total811394

Merged error: 13.8b

Counts
94 → 13

localize18.0ms

Local error

Found 4 expressions with local error:

0.0b
(exp (log (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))))
0.4b
(+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))
2.4b
(log (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x))))))
13.5b
(sqrt (+ (* (* 4.0 p) p) (* x x)))

rewrite49.0ms

Algorithm
rewrite-expression-head
Rules
14×*-un-lft-identity
add-sqr-sqrt
add-cube-cbrt log-prod
pow1
add-log-exp
add-exp-log
log-div exp-prod flip3-+ exp-sum add-cbrt-cube flip-+
sqrt-prod distribute-lft-out
exp-diff sqrt-div log-pow
+-commutative rem-sqrt-square sqrt-pow1 pow1/2 rem-log-exp sum-log rem-exp-log
Counts
4 → 60
Calls
4 calls:
14.0ms
(exp (log (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))))
15.0ms
(+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))
13.0ms
(log (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x))))))
5.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))

series422.0ms

Counts
4 → 12
Calls
4 calls:
83.0ms
(exp (log (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))))
84.0ms
(+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))
192.0ms
(log (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x))))))
63.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))

simplify116.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 3 (44.0ms)

IterNodesCost
0230707
1588645
21449625
33630619
45001619

prune220.0ms

Filtered
72 candidates to 56 candidates (77.8%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New71172
Fresh5712
Picked101
Done000
Total77885

Merged error: 9.6b

Counts
85 → 8

localize16.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (cbrt (sqrt (* 0.5 (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))))) (cbrt (sqrt (* 0.5 (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))))))
13.5b
(sqrt (+ (* (* 4.0 p) p) (* x x)))
13.5b
(sqrt (+ (* (* 4.0 p) p) (* x x)))
13.5b
(sqrt (+ (* (* 4.0 p) p) (* x x)))

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
26×add-sqr-sqrt
20×cbrt-prod
18×sqrt-div
15×add-cube-cbrt *-un-lft-identity
14×pow1 associate-*r/
13×sqrt-prod
12×cbrt-div
flip3-+ flip-+
swap-sqr associate-*r* associate-*l*
add-exp-log pow1/3
frac-times add-cbrt-cube add-log-exp unswap-sqr
rem-sqrt-square sqrt-pow1 pow1/2
pow-prod-down associate-*l/ pow-sqr pow-prod-up
pow2 pow-plus prod-exp *-commutative cbrt-unprod
Counts
4 → 96
Calls
4 calls:
9.0ms
(* (cbrt (sqrt (* 0.5 (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))))) (cbrt (sqrt (* 0.5 (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))))))
5.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))
5.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))
5.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))

series856.0ms

Counts
4 → 12
Calls
4 calls:
675.0ms
(* (cbrt (sqrt (* 0.5 (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))))) (cbrt (sqrt (* 0.5 (+ 1.0 (/ x (sqrt (+ (* (* 4.0 p) p) (* x x)))))))))
55.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))
63.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))
63.0ms
(sqrt (+ (* (* 4.0 p) p) (* x x)))

simplify123.0ms

Algorithm
egg-herbie
Counts
108 → 108
Iterations

Useful iterations: 3 (107.0ms)

IterNodesCost
03051729
19491628
239761523
350011511

prune389.0ms

Filtered
108 candidates to 81 candidates (75.0%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1080108
Fresh077
Picked011
Done000
Total1088116

Merged error: 9.6b

Counts
116 → 8

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ x (fabs (cbrt (+ (* (* 4.0 p) p) (* x x)))))
6.0b
(+ 1.0 (/ (/ x (fabs (cbrt (+ (* (* 4.0 p) p) (* x x))))) (sqrt (cbrt (+ (* (* 4.0 p) p) (* x x))))))
14.4b
(cbrt (+ (* (* 4.0 p) p) (* x x)))
14.4b
(cbrt (+ (* (* 4.0 p) p) (* x x)))

rewrite52.0ms

Algorithm
rewrite-expression-head
Rules
16×*-un-lft-identity
14×add-sqr-sqrt add-cube-cbrt
times-frac
add-exp-log cbrt-prod add-cbrt-cube add-log-exp
pow1 cbrt-div
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 → 65
Calls
4 calls:
3.0ms
(/ x (fabs (cbrt (+ (* (* 4.0 p) p) (* x x)))))
37.0ms
(+ 1.0 (/ (/ x (fabs (cbrt (+ (* (* 4.0 p) p) (* x x))))) (sqrt (cbrt (+ (* (* 4.0 p) p) (* x x))))))
5.0ms
(cbrt (+ (* (* 4.0 p) p) (* x x)))
5.0ms
(cbrt (+ (* (* 4.0 p) p) (* x x)))

series492.0ms

Counts
4 → 12
Calls
4 calls:
32.0ms
(/ x (fabs (cbrt (+ (* (* 4.0 p) p) (* x x)))))
177.0ms
(+ 1.0 (/ (/ x (fabs (cbrt (+ (* (* 4.0 p) p) (* x x))))) (sqrt (cbrt (+ (* (* 4.0 p) p) (* x x))))))
144.0ms
(cbrt (+ (* (* 4.0 p) p) (* x x)))
138.0ms
(cbrt (+ (* (* 4.0 p) p) (* x x)))

simplify48.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
03881007
11398923
25001915

prune289.0ms

Filtered
77 candidates to 69 candidates (89.6%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New75277
Fresh066
Picked101
Done011
Total76985

Merged error: 9.6b

Counts
85 → 9

regimes314.0ms

Accuracy

65.7% (1.3b remaining)

Error of 11.0b against oracle of 9.7b and baseline of 13.6b

bsearch2.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04735
14735

end0.0ms

sample1.1s

Algorithm
intervals
Results
325.0ms6057×body80valid
246.0ms801×body2560valid
149.0ms603×body1280valid
142.0ms8000×pre80true
62.0ms312×body640valid
21.0ms139×body320valid
9.0ms88×body160valid

Profiling

Loading profile data...