Details

Time bar (total: 4.7s)

sample46.0ms

Algorithm
intervals
Results
10.0ms34×body2560valid
7.0ms187×body80valid
5.0ms29×body1280valid
4.0ms99×body80nan
2.0ms16×body640valid
2.0msbody5120valid
1.0msbody320valid
0.0msbody160valid

simplify14.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0289
1649
21149
31359
41449
51489
61489

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 32.7b

localize11.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
0.5b
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
0.6b
(- (* b b) (* 4.0 (* a c)))
20.6b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite112.0ms

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

series303.0ms

Counts
4 → 12
Calls
4 calls:
100.0ms
(/ (- (- b) (sqrt (- (* b b) (* 4.0 (* a c))))) (* 2.0 a))
82.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
47.0ms
(- (* b b) (* 4.0 (* a c)))
75.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify45.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
0404890
11481801
25001796

prune242.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 6.0b

localize13.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ 1 (/ (* 2.0 a) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))))
0.5b
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
0.6b
(- (* b b) (* 4.0 (* a c)))
20.6b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite101.0ms

Algorithm
rewrite-expression-head
Rules
67×times-frac
48×add-sqr-sqrt
47×*-un-lft-identity
27×add-cube-cbrt
25×add-exp-log
13×associate-/r* add-cbrt-cube
12×div-exp
10×distribute-lft-out-- add-log-exp difference-of-squares
associate-/r/
sqrt-prod
flip3-- flip--
pow1
cbrt-undiv distribute-rgt-neg-in div-inv
rec-exp diff-log 1-exp prod-exp associate-/l*
sub-neg sqrt-div
associate--l- neg-sub0 rem-sqrt-square pow-flip frac-2neg sqrt-pow1 pow1/2 neg-log clear-num cbrt-unprod inv-pow
Counts
4 → 125
Calls
4 calls:
52.0ms
(/ 1 (/ (* 2.0 a) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))))
24.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
9.0ms
(- (* b b) (* 4.0 (* a c)))
12.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series323.0ms

Counts
4 → 12
Calls
4 calls:
117.0ms
(/ 1 (/ (* 2.0 a) (- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))))
82.0ms
(- (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
47.0ms
(- (* b b) (* 4.0 (* a c)))
76.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify69.0ms

Algorithm
egg-herbie
Counts
137 → 137
Iterations

Useful iterations: 2 (54.0ms)

IterNodesCost
05331804
125441605
250021531

prune260.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 5.9b

localize18.0ms

Local error

Found 4 expressions with local error:

1.3b
(+ (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
14.9b
(/ (* (/ 1 2.0) (+ (- (pow b 2) (pow b 2)) (* 4.0 (* a c)))) a)
15.6b
(- (pow b 2) (pow b 2))
20.6b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite196.0ms

Algorithm
rewrite-expression-head
Rules
32×add-sqr-sqrt
23×*-un-lft-identity
22×unpow-prod-down
19×add-exp-log
16×difference-of-squares
15×add-cube-cbrt
13×add-cbrt-cube
12×unpow2 sqr-pow
10×distribute-rgt-out-- add-log-exp
distribute-lft-out--
div-exp
pow1 associate-/l/
cbrt-undiv prod-exp
flip3-+ times-frac associate-/r* sqrt-prod flip-+
frac-times flip3-- sqrt-div associate-*r/ sum-log flip-- cbrt-unprod distribute-lft-out
+-commutative neg-sub0 associate-+l- sub-neg rem-sqrt-square rec-exp distribute-rgt-neg-in frac-2neg sqrt-pow1 pow1/2 +-inverses diff-log 1-exp neg-log associate-*l/ clear-num div-inv associate-/l*
Counts
4 → 107
Calls
4 calls:
22.0ms
(+ (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
139.0ms
(/ (* (/ 1 2.0) (+ (- (pow b 2) (pow b 2)) (* 4.0 (* a c)))) a)
22.0ms
(- (pow b 2) (pow b 2))
9.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series175.0ms

Counts
4 → 12
Calls
4 calls:
84.0ms
(+ (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
14.0ms
(/ (* (/ 1 2.0) (+ (- (pow b 2) (pow b 2)) (* 4.0 (* a c)))) a)
1.0ms
(- (pow b 2) (pow b 2))
76.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify195.0ms

Algorithm
egg-herbie
Counts
119 → 119
Iterations

Useful iterations: 2 (186.0ms)

IterNodesCost
0595778
13991571
25002555

prune312.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 5.9b

localize11.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (* 2.0 c) (+ (- b) (sqrt (- (* b b) (* 4.0 (* a c))))))
0.6b
(- (* b b) (* 4.0 (* a c)))
1.3b
(+ (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
20.6b
(sqrt (- (* b b) (* 4.0 (* a c))))

rewrite90.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-/r*
distribute-rgt-neg-in sqrt-prod
cbrt-undiv flip3-- flip3-+ sqrt-div div-exp sum-log associate-/r/ flip-- flip-+
+-commutative neg-sub0 associate-+l- sub-neg rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 diff-log neg-log prod-exp clear-num cbrt-unprod div-inv associate-/l*
Counts
4 → 69
Calls
4 calls:
46.0ms
(/ (* 2.0 c) (+ (- b) (sqrt (- (* b b) (* 4.0 (* a c))))))
9.0ms
(- (* b b) (* 4.0 (* a c)))
22.0ms
(+ (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
12.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

series409.0ms

Counts
4 → 12
Calls
4 calls:
203.0ms
(/ (* 2.0 c) (+ (- b) (sqrt (- (* b b) (* 4.0 (* a c))))))
50.0ms
(- (* b b) (* 4.0 (* a c)))
80.0ms
(+ (- b) (sqrt (- (* b b) (* 4.0 (* a c)))))
75.0ms
(sqrt (- (* b b) (* 4.0 (* a c))))

simplify45.0ms

Algorithm
egg-herbie
Counts
81 → 81
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
0366755
11482656
25001644

prune187.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 5.9b

regimes170.0ms

Accuracy

95.1% (1.1b remaining)

Error of 6.5b against oracle of 5.4b and baseline of 28.7b

bsearch160.0ms

Steps
ItersRangePoint
7
2.5938763934072053e+128
9.952100372240566e+129
3.060086240952485e+128
10
1.7046210952040667e-260
6.470989372945145e-250
9.309132026770996e-260
7
-3.11898899158337e+65
-2.3526715177838076e+63
-3.0609761389176743e+65

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04425
14425

end0.0ms

sample1.2s

Algorithm
intervals
Results
240.0ms1040×body2560valid
220.0ms5789×body80valid
166.0ms914×body1280valid
107.0ms2948×body80nan
61.0ms432×body640valid
35.0ms124×body5120valid
27.0ms258×body320valid
11.0ms149×body160valid