Details

Time bar (total: 8.4s)

sample39.0ms

Algorithm
intervals
Results
9.0ms40×body2560valid
7.0ms187×body80valid
4.0ms23×body1280valid
3.0ms86×body80nan
2.0ms16×body640valid
1.0msbody320valid
1.0msbody5120valid
0.0msbody160valid

simplify48.0ms

Counts
1 → 1
Iterations

Useful iterations: 2 (5.0ms)

IterNodesCost
01417
12517
24516
38716
410616
511416
done11416

prune6.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 34.4b

localize11.0ms

Local error

Found 4 expressions with local error:

0.4b
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
0.8b
(- (* b b) (* (* 4.0 a) c))
1.3b
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
21.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))

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

series296.0ms

Counts
4 → 12
Calls
4 calls:
106.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
44.0ms
(- (* b b) (* (* 4.0 a) c))
78.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
69.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify481.0ms

Counts
102 → 102
Iterations

Useful iterations: done (478.0ms)

IterNodesCost
01671697
14491584
216001361
done50001351

prune280.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 5.6b

localize17.0ms

Local error

Found 4 expressions with local error:

1.0b
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
6.0b
(/ (/ (+ (* (* 4.0 a) c) (* b (- b b))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
8.8b
(/ (+ (* (* 4.0 a) c) (* b (- b b))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
21.1b
(sqrt (- (* b b) (* (* 4.0 a) c)))

rewrite123.0ms

Algorithm
rewrite-expression-head
Rules
125×add-sqr-sqrt
124×*-un-lft-identity
90×times-frac
80×add-cube-cbrt
60×prod-diff
44×sqrt-prod
32×distribute-rgt-neg-in
30×associate-/l*
22×distribute-lft-out-- difference-of-squares
21×distribute-lft-neg-in
18×add-exp-log add-cbrt-cube
10×fma-neg
associate-/r* add-log-exp
cbrt-undiv neg-mul-1 div-exp
associate-/r/
pow1 flip3-- flip--
expm1-log1p-u log1p-expm1-u div-inv
associate-/l/
frac-2neg sqrt-div diff-log prod-exp clear-num cbrt-unprod
associate--l- neg-sub0 sub-neg rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 neg-log flip-+
Counts
4 → 232
Calls
4 calls:
16.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
55.0ms
(/ (/ (+ (* (* 4.0 a) c) (* b (- b b))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
38.0ms
(/ (+ (* (* 4.0 a) c) (* b (- b b))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

series478.0ms

Counts
4 → 12
Calls
4 calls:
76.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
149.0ms
(/ (/ (+ (* (* 4.0 a) c) (* b (- b b))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))
182.0ms
(/ (+ (* (* 4.0 a) c) (* b (- b b))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
71.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))

simplify1.5s

Counts
244 → 244
Iterations

Useful iterations: done (1.5s)

IterNodesCost
033710795
18438234
230526673
done50016650

prune533.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 5.5b

localize12.0ms

Local error

Found 4 expressions with local error:

0.4b
(/ (+ (- b) (sqrt (- (pow b 2) (* 4.0 (* a c))))) (* 2.0 a))
0.8b
(- (pow b 2) (* 4.0 (* a c)))
1.3b
(+ (- b) (sqrt (- (pow b 2) (* 4.0 (* a c)))))
21.1b
(sqrt (- (pow b 2) (* 4.0 (* a c))))

rewrite96.0ms

Algorithm
rewrite-expression-head
Rules
26×*-un-lft-identity
15×add-sqr-sqrt
14×add-cube-cbrt
10×fma-def add-log-exp
add-exp-log add-cbrt-cube
fma-neg prod-diff
unpow-prod-down 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/ unpow2 sqr-pow
+-commutative neg-mul-1 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 → 104
Calls
4 calls:
53.0ms
(/ (+ (- b) (sqrt (- (pow b 2) (* 4.0 (* a c))))) (* 2.0 a))
9.0ms
(- (pow b 2) (* 4.0 (* a c)))
19.0ms
(+ (- b) (sqrt (- (pow b 2) (* 4.0 (* a c)))))
12.0ms
(sqrt (- (pow b 2) (* 4.0 (* a c))))

series303.0ms

Counts
4 → 12
Calls
4 calls:
106.0ms
(/ (+ (- b) (sqrt (- (pow b 2) (* 4.0 (* a c))))) (* 2.0 a))
47.0ms
(- (pow b 2) (* 4.0 (* a c)))
77.0ms
(+ (- b) (sqrt (- (pow b 2) (* 4.0 (* a c)))))
72.0ms
(sqrt (- (pow b 2) (* 4.0 (* a c))))

simplify585.0ms

Counts
116 → 116
Iterations

Useful iterations: done (581.0ms)

IterNodesCost
01821925
14741793
216711543
done50001542

prune322.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 5.3b

localize13.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ 1 (/ 2.0 (/ (- (sqrt (- (pow b 2) (* 4.0 (* a c)))) b) a)))
0.8b
(- (pow b 2) (* 4.0 (* a c)))
1.3b
(- (sqrt (- (pow b 2) (* 4.0 (* a c)))) b)
21.1b
(sqrt (- (pow b 2) (* 4.0 (* a c))))

rewrite145.0ms

Algorithm
rewrite-expression-head
Rules
693×times-frac
456×add-sqr-sqrt
381×*-un-lft-identity
307×add-cube-cbrt
74×difference-of-squares
71×associate-/r*
52×sqrt-prod
37×distribute-lft-out--
26×prod-diff
25×add-exp-log
17×div-inv
15×div-exp
14×fma-neg
13×add-cbrt-cube
add-log-exp
pow1 cbrt-undiv unpow-prod-down
associate-/r/
expm1-log1p-u log1p-expm1-u
rec-exp flip3-- 1-exp flip-- associate-/l*
sub-neg sqrt-div diff-log unpow2 sqr-pow
rem-sqrt-square pow-flip frac-2neg sqrt-pow1 pow1/2 clear-num inv-pow
Counts
4 → 402
Calls
4 calls:
51.0ms
(/ 1 (/ 2.0 (/ (- (sqrt (- (pow b 2) (* 4.0 (* a c)))) b) a)))
9.0ms
(- (pow b 2) (* 4.0 (* a c)))
46.0ms
(- (sqrt (- (pow b 2) (* 4.0 (* a c)))) b)
10.0ms
(sqrt (- (pow b 2) (* 4.0 (* a c))))

series310.0ms

Counts
4 → 12
Calls
4 calls:
109.0ms
(/ 1 (/ 2.0 (/ (- (sqrt (- (pow b 2) (* 4.0 (* a c)))) b) a)))
45.0ms
(- (pow b 2) (* 4.0 (* a c)))
79.0ms
(- (sqrt (- (pow b 2) (* 4.0 (* a c)))) b)
76.0ms
(sqrt (- (pow b 2) (* 4.0 (* a c))))

simplify565.0ms

Counts
414 → 414
Iterations

Useful iterations: done (549.0ms)

IterNodesCost
063713093
1153111820
done500111142

prune689.0ms

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 5.3b

regimes184.0ms

Accuracy

85.1% (4.2b remaining)

Error of 9.5b against oracle of 5.3b and baseline of 33.8b

bsearch139.0ms

Steps
ItersRangePoint
8
1.9086145032856143e-23
7.928945926733413e-19
1.0486964725483499e-20
4
5.373368029867189e-105
8.528584395310529e-105
6.785925920671322e-105
7
-3.550313394724354e+57
-2.3888623512096697e+55
-3.124283374205192e+57

simplify4.0ms

Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
04570
15470
done5470

end0.0ms

sample1.1s

Algorithm
intervals
Results
242.0ms1074×body2560valid
228.0ms5844×body80valid
163.0ms907×body1280valid
106.0ms2890×body80nan
63.0ms452×body640valid
28.0ms102×body5120valid
25.0ms234×body320valid
8.0ms119×body160valid