Details

Time bar (total: 5.5s)

sample44.0ms

Algorithm
intervals
Results
7.0ms185×body80valid
6.0ms34×body1280valid
5.0ms25×body2560valid
4.0ms115×body80nan
3.0msbody5120valid
2.0ms15×body640valid
1.0ms10×body320valid
0.0msbody160valid

simplify11.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: 35.9b

localize14.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (* 4.0 a) c)
0.4b
(- (* b b) (* (* 4.0 a) c))
1.7b
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
24.7b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite61.0ms

Algorithm
rewrite-expression-head
Rules
13×*-un-lft-identity
10×pow1 add-sqr-sqrt fma-def add-log-exp
add-exp-log add-cube-cbrt add-cbrt-cube
expm1-log1p-u distribute-rgt-neg-in log1p-expm1-u
distribute-lft-neg-in associate-*r* pow-prod-down prod-exp sqrt-prod cbrt-unprod
flip3-- sqrt-div sum-log flip-- distribute-lft-out
+-commutative neg-sub0 associate-+l- neg-mul-1 sub-neg rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 fma-neg diff-log associate-*l* prod-diff neg-log *-commutative flip-+
Counts
4 → 80
Calls
4 calls:
19.0ms
(* (* 4.0 a) c)
8.0ms
(- (* b b) (* (* 4.0 a) c))
21.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
11.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series189.0ms

Counts
4 → 12
Calls
4 calls:
17.0ms
(* (* 4.0 a) c)
42.0ms
(- (* b b) (* (* 4.0 a) c))
71.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
59.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify44.0ms

Algorithm
egg-herbie
Counts
92 → 92
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
0337530
11440479
25002467

prune391.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 12.2b

localize16.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt c)
0.6b
(cbrt c)
1.7b
(+ (- b) (sqrt (- (* b b) (* (* (* 4.0 a) (* (cbrt c) (cbrt c))) (cbrt c)))))
24.7b
(sqrt (- (* b b) (* (* (* 4.0 a) (* (cbrt c) (cbrt c))) (cbrt c))))

rewrite39.0ms

Algorithm
rewrite-expression-head
Rules
14×*-un-lft-identity
11×add-sqr-sqrt
10×add-cube-cbrt fma-def
add-log-exp
cbrt-prod
pow1
add-exp-log expm1-log1p-u distribute-rgt-neg-in add-cbrt-cube log1p-expm1-u
distribute-lft-neg-in sqrt-prod
pow1/3 sqrt-div sum-log distribute-lft-out
+-commutative neg-sub0 associate-+l- neg-mul-1 rem-sqrt-square flip3-- sqrt-pow1 flip3-+ pow1/2 neg-log flip-- flip-+
Counts
4 → 70
Calls
4 calls:
1.0ms
(cbrt c)
1.0ms
(cbrt c)
24.0ms
(+ (- b) (sqrt (- (* b b) (* (* (* 4.0 a) (* (cbrt c) (cbrt c))) (cbrt c)))))
11.0ms
(sqrt (- (* b b) (* (* (* 4.0 a) (* (cbrt c) (cbrt c))) (cbrt c))))

series506.0ms

Counts
4 → 12
Calls
4 calls:
165.0ms
(cbrt c)
172.0ms
(cbrt c)
86.0ms
(+ (- b) (sqrt (- (* b b) (* (* (* 4.0 a) (* (cbrt c) (cbrt c))) (cbrt c)))))
82.0ms
(sqrt (- (* b b) (* (* (* 4.0 a) (* (cbrt c) (cbrt c))) (cbrt c))))

simplify39.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
0276645
11052588
25001574

prune274.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 12.2b

localize14.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))))
12.2b
(+ (- b) (* (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (sqrt (- (* b b) (* (* 4.0 a) c))))))
24.7b
(sqrt (- (* b b) (* (* 4.0 a) c)))
24.7b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite102.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
53×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
21×add-cube-cbrt *-un-lft-identity
18×pow1/2
15×swap-sqr
10×fma-def
associate-*r* associate-*l* pow-prod-up unswap-sqr
flip3-- flip-- add-log-exp
add-exp-log add-cbrt-cube
pow-prod-down pow-sqr
expm1-log1p-u frac-times log1p-expm1-u
distribute-lft-neg-in distribute-rgt-neg-in
rem-sqrt-square associate-*r/ associate-*l/ sum-log
+-commutative pow2 neg-sub0 associate-+l- neg-mul-1 flip3-+ pow-plus sqrt-unprod neg-log prod-exp rem-square-sqrt *-commutative cbrt-unprod flip-+
Counts
4 → 144
Calls
4 calls:
61.0ms
(* (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))))
12.0ms
(+ (- b) (* (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (sqrt (- (* b b) (* (* 4.0 a) c))))))
13.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
11.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series258.0ms

Counts
4 → 12
Calls
4 calls:
63.0ms
(* (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))))
71.0ms
(+ (- b) (* (sqrt (sqrt (- (* b b) (* (* 4.0 a) c)))) (sqrt (sqrt (- (* b b) (* (* 4.0 a) c))))))
59.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
64.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify59.0ms

Algorithm
egg-herbie
Counts
156 → 156
Iterations

Useful iterations: 2 (44.0ms)

IterNodesCost
03561458
115001280
250011245

prune435.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 12.1b

localize17.0ms

Local error

Found 4 expressions with local error:

1.2b
(+ b (sqrt (- (* b b) (* (* 4.0 a) c))))
3.5b
(/ (/ (+ 0 (* (* 4.0 a) c)) (- (+ b (sqrt (- (* b b) (* (* 4.0 a) c)))))) (* 2.0 a))
10.3b
(/ (+ 0 (* (* 4.0 a) c)) (- (+ b (sqrt (- (* b b) (* (* 4.0 a) c))))))
24.7b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite227.0ms

Algorithm
rewrite-expression-head
Rules
150×times-frac
117×*-un-lft-identity
76×add-sqr-sqrt
75×add-cube-cbrt
45×associate-/l*
40×distribute-lft-neg-in distribute-rgt-neg-in
21×distribute-lft-out
18×add-exp-log add-cbrt-cube
13×associate-/r*
10×neg-mul-1
cbrt-undiv div-exp
associate-/r/ distribute-neg-frac add-log-exp
pow1 flip3-+ flip-+
expm1-log1p-u log1p-expm1-u div-inv
fma-def sqrt-prod associate-/l/
frac-2neg sqrt-div prod-exp clear-num cbrt-unprod
+-commutative rem-sqrt-square flip3-- sqrt-pow1 pow1/2 sum-log flip--
Counts
4 → 209
Calls
4 calls:
15.0ms
(+ b (sqrt (- (* b b) (* (* 4.0 a) c))))
114.0ms
(/ (/ (+ 0 (* (* 4.0 a) c)) (- (+ b (sqrt (- (* b b) (* (* 4.0 a) c)))))) (* 2.0 a))
77.0ms
(/ (+ 0 (* (* 4.0 a) c)) (- (+ b (sqrt (- (* b b) (* (* 4.0 a) c))))))
11.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series432.0ms

Counts
4 → 12
Calls
4 calls:
70.0ms
(+ b (sqrt (- (* b b) (* (* 4.0 a) c))))
132.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))))))
65.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify126.0ms

Algorithm
egg-herbie
Counts
221 → 221
Iterations

Useful iterations: 2 (92.0ms)

IterNodesCost
08253590
138073333
250013330

prune604.0ms

Pruning

12 alts after pruning (11 fresh and 1 done)

Merged error: 10.6b

regimes217.0ms

Accuracy

92.6% (1.5b remaining)

Error of 12.2b against oracle of 10.7b and baseline of 31.5b

bsearch156.0ms

Steps
ItersRangePoint
6
2.4781081934878466e+89
1.3380927769134863e+90
1.319255587955479e+90
6
-3.405927582379186e-150
-4.860750269204613e-151
-4.9276367402926466e-151
9
-8.193557888742793e+156
-5.650723842587128e+148
-1.3596472614638946e+154

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06140
16140

end0.0ms

sample1.2s

Algorithm
intervals
Results
237.0ms1059×body2560valid
228.0ms5787×body80valid
167.0ms896×body1280valid
110.0ms2934×body80nan
70.0ms490×body640valid
40.0ms114×body5120valid
24.0ms228×body320valid
9.0ms120×body160valid