Details

Time bar (total: 6.4s)

sample43.0ms

Algorithm
intervals
Results
7.0ms189×body80valid
6.0ms37×body1280valid
6.0ms27×body2560valid
3.0ms98×body80nan
2.0ms16×body640valid
1.0msbody5120valid
1.0msbody320valid
0.0msbody160valid

simplify11.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0249
1459
2799
3979
41059
51059

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 32.7b

localize12.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
0.9b
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
1.2b
(- (* b b) (* (* 4.0 a) c))
20.8b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite107.0ms

Algorithm
rewrite-expression-head
Rules
19×*-un-lft-identity
10×add-log-exp
add-exp-log add-cbrt-cube
add-sqr-sqrt
add-cube-cbrt
distribute-lft-out
pow1 times-frac associate-/l*
distribute-rgt-neg-in sqrt-prod
cbrt-undiv neg-sub0 associate-+l- flip3-- flip3-+ sqrt-div div-exp sum-log flip-- flip-+ associate-/l/
+-commutative sub-neg rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 diff-log div-sub neg-log prod-exp clear-num associate-/r* cbrt-unprod div-inv
Counts
4 → 70
Calls
4 calls:
66.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
20.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
10.0ms
(- (* b b) (* (* 4.0 a) c))
9.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series273.0ms

Counts
4 → 12
Calls
4 calls:
96.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
71.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
40.0ms
(- (* b b) (* (* 4.0 a) c))
65.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify45.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
0405779
11563685
25001674

prune218.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 4.5b

localize16.0ms

Local error

Found 4 expressions with local error:

1.2b
(- (* b b) (* (* 4.0 a) c))
2.4b
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
9.2b
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
20.8b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite165.0ms

Algorithm
rewrite-expression-head
Rules
90×times-frac
80×add-sqr-sqrt
79×*-un-lft-identity
39×add-cube-cbrt
30×associate-/l*
20×distribute-lft-out-- difference-of-squares
18×add-exp-log add-cbrt-cube
13×sqrt-prod
10×distribute-rgt-neg-in
associate-/r*
cbrt-undiv div-exp
associate-/r/ add-log-exp
pow1 flip3-- flip--
div-inv
associate-/l/
frac-2neg sqrt-div prod-exp clear-num cbrt-unprod
sub-neg rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 diff-log flip-+
Counts
4 → 148
Calls
4 calls:
8.0ms
(- (* b b) (* (* 4.0 a) c))
84.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
55.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
12.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series405.0ms

Counts
4 → 12
Calls
4 calls:
42.0ms
(- (* b b) (* (* 4.0 a) c))
135.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
164.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
63.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify110.0ms

Algorithm
egg-herbie
Counts
160 → 160
Iterations

Useful iterations: 2 (88.0ms)

IterNodesCost
06402579
131552333
250012320

prune418.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 4.5b

localize20.0ms

Local error

Found 4 expressions with local error:

7.1b
(- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))
8.0b
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c)))))))
21.7b
(cbrt (- (* b b) (* (* 4.0 a) c)))
21.7b
(cbrt (- (* b b) (* (* 4.0 a) c)))

rewrite60.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
times-frac
add-log-exp
add-exp-log cbrt-prod add-cbrt-cube
pow1 cbrt-div flip3-- flip--
associate-/r* associate-/l*
pow1/3 diff-log associate-/r/ associate-/l/
cbrt-undiv associate--l- neg-sub0 sub-neg frac-2neg flip3-+ div-exp neg-log clear-num flip-+ div-inv
Counts
4 → 71
Calls
4 calls:
12.0ms
(- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))
35.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c)))))))
6.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))
6.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))

series821.0ms

Counts
4 → 12
Calls
4 calls:
81.0ms
(- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))
563.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c)))))))
88.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))
89.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))

simplify96.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (82.0ms)

IterNodesCost
06321757
130111587
250031579

prune442.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 4.5b

localize21.0ms

Local error

Found 4 expressions with local error:

7.1b
(- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))
7.9b
(* (+ 0 (* 4.0 (* a c))) (/ 1 (- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))))
21.7b
(cbrt (- (* b b) (* (* 4.0 a) c)))
21.7b
(cbrt (- (* b b) (* (* 4.0 a) c)))

rewrite73.0ms

Algorithm
rewrite-expression-head
Rules
21×add-sqr-sqrt
15×*-un-lft-identity associate-*r*
14×add-cube-cbrt
13×add-exp-log
11×times-frac
add-cbrt-cube
add-log-exp
pow1 cbrt-prod
cbrt-div flip3-- prod-exp flip--
associate-*l* unswap-sqr
frac-times flip3-+ pow1/3 diff-log div-exp associate-*l/ associate-/r/ cbrt-unprod flip-+
cbrt-undiv associate--l- neg-sub0 sub-neg rec-exp 1-exp associate-*r/ pow-prod-down neg-log un-div-inv *-commutative div-inv
Counts
4 → 82
Calls
4 calls:
11.0ms
(- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))
47.0ms
(* (+ 0 (* 4.0 (* a c))) (/ 1 (- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))))
6.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))
6.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))

series815.0ms

Counts
4 → 12
Calls
4 calls:
82.0ms
(- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))
552.0ms
(* (+ 0 (* 4.0 (* a c))) (/ 1 (- (- b) (* (fabs (cbrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (cbrt (- (* b b) (* (* 4.0 a) c))))))))
91.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))
89.0ms
(cbrt (- (* b b) (* (* 4.0 a) c)))

simplify156.0ms

Algorithm
egg-herbie
Counts
94 → 94
Iterations

Useful iterations: 2 (141.0ms)

IterNodesCost
07401859
140301641
250011618

prune424.0ms

Pruning

9 alts after pruning (6 fresh and 3 done)

Merged error: 4.5b

regimes227.0ms

Accuracy

86.1% (3.7b remaining)

Error of 9.3b against oracle of 5.6b and baseline of 32.0b

bsearch175.0ms

Steps
ItersRangePoint
9
1.074100872074174e-14
9.291103138484119e-07
9.167997088350656e-07
7
2.2469575477562033e-86
4.474843512735295e-85
2.2742398392973687e-86
9
-3.3947692407777386e+132
-4.222463702829868e+123
-8.50694614622187e+125

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05029
15229
25229

end0.0ms

sample1.2s

Algorithm
intervals
Results
241.0ms1096×body2560valid
215.0ms5864×body80valid
160.0ms913×body1280valid
120.0ms3005×body80nan
63.0ms459×body640valid
27.0ms101×body5120valid
22.0ms212×body320valid
9.0ms125×body160valid