Details

Time bar (total: 8.1s)

sample112.0ms

Algorithm
intervals
Results
30.0ms112×body320valid
21.0ms242×body80nan
18.0ms498×pre80true
15.0ms91×body160valid
6.0ms20×body640valid
3.0ms33×body80valid

simplify13.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0259
1469
2869
31139
41219
51219

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 52.0b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (- (* b b) (* (* 4.0 a) c)))
0.1b
(- (* b b) (* (* 4.0 a) c))
0.1b
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
26.3b
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))

rewrite53.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:
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
3.0ms
(- (* b b) (* (* 4.0 a) c))
33.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
12.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))

series297.0ms

Counts
4 → 12
Calls
4 calls:
70.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
43.0ms
(- (* b b) (* (* 4.0 a) c))
107.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
77.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))

simplify49.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0438854
11702750
25002735

prune242.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.1b

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (- (* b b) (* (* 4.0 a) c)))
0.1b
(- (* b b) (* (* 4.0 a) c))
0.3b
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
0.3b
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))

rewrite83.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
(sqrt (- (* b b) (* (* 4.0 a) c)))
3.0ms
(- (* b b) (* (* 4.0 a) c))
40.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
29.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))

series444.0ms

Counts
4 → 12
Calls
4 calls:
66.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
47.0ms
(- (* b b) (* (* 4.0 a) c))
147.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
183.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))

simplify124.0ms

Algorithm
egg-herbie
Counts
170 → 170
Iterations

Useful iterations: 2 (98.0ms)

IterNodesCost
06742663
134712411
250012406

prune467.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 0b

localize21.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ (/ (- (* 0 0) (* (* 4.0 (* a c)) (* 4.0 (* a c)))) (* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c))))) (* 2.0 a))
0.3b
(* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c))))
0.3b
(/ (- (* 0 0) (* (* 4.0 (* a c)) (* 4.0 (* a c)))) (* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c)))))
0.5b
(* (* 4.0 (* a c)) (* 4.0 (* a c)))

rewrite144.0ms

Algorithm
rewrite-expression-head
Rules
120×pow1
68×add-exp-log add-cbrt-cube
67×pow-prod-down
34×prod-exp cbrt-unprod
28×times-frac
25×flip3-- flip--
24×associate-/r/
20×add-sqr-sqrt associate-/l*
18×*-un-lft-identity
16×frac-times
14×add-cube-cbrt
12×cbrt-undiv div-exp
pow-sqr pow-prod-up
associate-*r/ associate-*l* associate-*l/
prod-diff difference-of-squares
distribute-rgt-in distribute-lft-in
expm1-log1p-u associate-*r* log1p-expm1-u div-inv add-log-exp
pow-plus div-sub associate-/l/
sub-neg frac-2neg clear-num associate-/r* *-commutative distribute-lft-out--
pow2 distribute-rgt-neg-in sub0-neg swap-sqr sqrt-prod distribute-rgt-neg-out unswap-sqr
Counts
4 → 200
Calls
4 calls:
32.0ms
(/ (/ (- (* 0 0) (* (* 4.0 (* a c)) (* 4.0 (* a c)))) (* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c))))) (* 2.0 a))
49.0ms
(* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c))))
24.0ms
(/ (- (* 0 0) (* (* 4.0 (* a c)) (* 4.0 (* a c)))) (* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c)))))
29.0ms
(* (* 4.0 (* a c)) (* 4.0 (* a c)))

series490.0ms

Counts
4 → 12
Calls
4 calls:
146.0ms
(/ (/ (- (* 0 0) (* (* 4.0 (* a c)) (* 4.0 (* a c)))) (* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c))))) (* 2.0 a))
121.0ms
(* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c))))
187.0ms
(/ (- (* 0 0) (* (* 4.0 (* a c)) (* 4.0 (* a c)))) (* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c)))))
36.0ms
(* (* 4.0 (* a c)) (* 4.0 (* a c)))

simplify60.0ms

Algorithm
egg-herbie
Counts
212 → 212
Iterations

Useful iterations: 1 (27.0ms)

IterNodesCost
09753538
150012962

prune586.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 0b

localize21.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ 1 (/ (* 2.0 a) (/ (- 0 (* (* 4.0 (* a c)) (* 4.0 (* a c)))) (* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c)))))))
0.3b
(/ (- 0 (* (* 4.0 (* a c)) (* 4.0 (* a c)))) (* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c)))))
0.3b
(* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c))))
0.5b
(* (* 4.0 (* a c)) (* 4.0 (* a c)))

rewrite157.0ms

Algorithm
rewrite-expression-head
Rules
147×times-frac
121×pow1
120×add-exp-log
76×add-cbrt-cube
67×pow-prod-down
56×add-sqr-sqrt
48×*-un-lft-identity
46×div-exp
45×associate-/r/
44×add-cube-cbrt prod-exp
37×flip3-- flip--
34×cbrt-unprod
24×frac-times
22×associate-/r*
19×cbrt-undiv
12×associate-*r/ associate-*l/
10×div-inv
pow-sqr pow-prod-up
associate-*l* difference-of-squares
rec-exp 1-exp associate-/l*
prod-diff
distribute-rgt-in distribute-lft-in
expm1-log1p-u associate-*r* log1p-expm1-u add-log-exp
pow-plus
sub-neg frac-2neg sub0-neg clear-num *-commutative associate-/l/ distribute-lft-out--
pow2 pow-flip distribute-rgt-neg-in div-sub distribute-frac-neg swap-sqr sqrt-prod distribute-rgt-neg-out inv-pow unswap-sqr
Counts
4 → 272
Calls
4 calls:
42.0ms
(/ 1 (/ (* 2.0 a) (/ (- 0 (* (* 4.0 (* a c)) (* 4.0 (* a c)))) (* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c)))))))
21.0ms
(/ (- 0 (* (* 4.0 (* a c)) (* 4.0 (* a c)))) (* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c)))))
51.0ms
(* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c))))
29.0ms
(* (* 4.0 (* a c)) (* 4.0 (* a c)))

series488.0ms

Counts
4 → 12
Calls
4 calls:
146.0ms
(/ 1 (/ (* 2.0 a) (/ (- 0 (* (* 4.0 (* a c)) (* 4.0 (* a c)))) (* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c)))))))
183.0ms
(/ (- 0 (* (* 4.0 (* a c)) (* 4.0 (* a c)))) (* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c)))))
121.0ms
(* (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (- 0 (* 4.0 (* a c))))
36.0ms
(* (* 4.0 (* a c)) (* 4.0 (* a c)))

simplify84.0ms

Algorithm
egg-herbie
Counts
284 → 284
Iterations

Useful iterations: 1 (31.0ms)

IterNodesCost
012966080
150025414

prune742.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 0b

regimes116.0ms

Accuracy

0% (0.5b remaining)

Error of 0.5b against oracle of 0.0b and baseline of 0.5b

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03120
14620
25720
35720

end0.0ms

sample3.3s

Algorithm
intervals
Results
890.0ms3685×body320valid
725.0ms8199×body80nan
577.0ms16199×pre80true
498.0ms2937×body160valid
159.0ms498×body640valid
86.0ms880×body80valid