Details

Time bar (total: 5.9s)

sample43.0ms

Algorithm
intervals
Results
9.0ms35×body2560valid
8.0ms197×body80valid
5.0ms28×body1280valid
4.0ms90×body80nan
2.0ms13×body640valid
1.0ms11×body320valid
1.0msbody5120valid
0.0msbody160valid

simplify16.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0259
1469
2869
31139
41219
51219

prune4.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 34.6b

localize12.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
0.4b
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
1.2b
(- (* b b) (* (* 4.0 a) c))
22.7b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite36.0ms

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

series338.0ms

Counts
4 → 12
Calls
4 calls:
118.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
88.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
55.0ms
(- (* b b) (* (* 4.0 a) c))
76.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify59.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (49.0ms)

IterNodesCost
0438854
11702750
25001735

prune345.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 4.7b

localize18.0ms

Local error

Found 4 expressions with local error:

1.2b
(- (* b b) (* (* 4.0 a) c))
3.7b
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
8.4b
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
22.7b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite46.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--
expm1-log1p-u log1p-expm1-u div-inv
associate-/l/
frac-2neg sqrt-div prod-exp clear-num cbrt-unprod
sub-neg rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 fma-neg diff-log prod-diff flip-+
Counts
4 → 158
Calls
4 calls:
4.0ms
(- (* b b) (* (* 4.0 a) c))
17.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
13.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series503.0ms

Counts
4 → 12
Calls
4 calls:
49.0ms
(- (* b b) (* (* 4.0 a) c))
170.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
203.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
81.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify145.0ms

Algorithm
egg-herbie
Counts
170 → 170
Iterations

Useful iterations: 2 (114.0ms)

IterNodesCost
06742663
134622412
250012406

prune533.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 4.6b

localize18.0ms

Local error

Found 4 expressions with local error:

1.2b
(- (* b b) (* (* 4.0 a) c))
3.7b
(* (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (/ 1 (* 2.0 a)))
8.4b
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
22.7b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite50.0ms

Algorithm
rewrite-expression-head
Rules
64×add-sqr-sqrt
58×*-un-lft-identity
51×add-exp-log
46×times-frac
30×add-cube-cbrt
27×associate-*l* add-cbrt-cube
20×prod-exp
16×div-exp
14×distribute-lft-out-- difference-of-squares
10×sqrt-prod
cbrt-undiv cbrt-unprod
pow1 distribute-rgt-neg-in associate-*r* associate-/r*
add-log-exp
expm1-log1p-u rec-exp flip3-- 1-exp associate-/r/ flip-- log1p-expm1-u
div-inv associate-/l*
sqrt-div associate-/l/ unswap-sqr
frac-times sub-neg rem-sqrt-square frac-2neg sqrt-pow1 flip3-+ pow1/2 fma-neg diff-log associate-*r/ prod-diff pow-prod-down associate-*l/ clear-num un-div-inv *-commutative flip-+
Counts
4 → 153
Calls
4 calls:
4.0ms
(- (* b b) (* (* 4.0 a) c))
22.0ms
(* (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (/ 1 (* 2.0 a)))
13.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series502.0ms

Counts
4 → 12
Calls
4 calls:
48.0ms
(- (* b b) (* (* 4.0 a) c))
167.0ms
(* (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (/ 1 (* 2.0 a)))
205.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
82.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify172.0ms

Algorithm
egg-herbie
Counts
165 → 165
Iterations

Useful iterations: 2 (145.0ms)

IterNodesCost
07662390
142302057
250012054

prune494.0ms

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 4.6b

localize15.0ms

Local error

Found 4 expressions with local error:

1.1b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
1.2b
(- (* b b) (* (* 4.0 a) c))
15.1b
(/ (* 4.0 (* a c)) (* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))
22.7b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite50.0ms

Algorithm
rewrite-expression-head
Rules
61×prod-diff
51×add-sqr-sqrt
50×*-un-lft-identity
46×add-cube-cbrt
40×add-exp-log add-cbrt-cube
34×sqrt-prod
22×distribute-rgt-neg-in
21×distribute-lft-neg-in
18×prod-exp cbrt-unprod
11×fma-neg
10×add-log-exp
cbrt-undiv div-exp
neg-mul-1
pow1
expm1-log1p-u flip3-- flip-- log1p-expm1-u
diff-log
sub-neg sqrt-div associate-*l/ associate-/r/ distribute-lft-out-- difference-of-squares
associate--l- neg-sub0 rem-sqrt-square frac-2neg sqrt-pow1 times-frac pow1/2 neg-log clear-num associate-/r* div-inv associate-/l*
Counts
4 → 158
Calls
4 calls:
17.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
4.0ms
(- (* b b) (* (* 4.0 a) c))
17.0ms
(/ (* 4.0 (* a c)) (* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series391.0ms

Counts
4 → 12
Calls
4 calls:
88.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
57.0ms
(- (* b b) (* (* 4.0 a) c))
169.0ms
(/ (* 4.0 (* a c)) (* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a)))
76.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify145.0ms

Algorithm
egg-herbie
Counts
170 → 170
Iterations

Useful iterations: 2 (118.0ms)

IterNodesCost
07483574
144342280
250012276

prune372.0ms

Pruning

8 alts after pruning (5 fresh and 3 done)

Merged error: 4.6b

regimes214.0ms

Accuracy

83.8% (4.3b remaining)

Error of 9.6b against oracle of 5.3b and baseline of 31.8b

bsearch155.0ms

Steps
ItersRangePoint
9
3.2956103981062554e-86
3.6842556330088986e-79
2.267195199467958e-82
11
-1.7053146236540368e+120
-1.0719231849388273e+91
-3.5940112039867074e+100

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03716
13716

end0.0ms

sample1.2s

Algorithm
intervals
Results
261.0ms1080×body2560valid
239.0ms5783×body80valid
178.0ms928×body1280valid
112.0ms2980×body80nan
71.0ms450×body640valid
30.0ms105×body5120valid
29.0ms258×body320valid
9.0ms123×body160valid