Details

Time bar (total: 25.2s)

sample66.0ms

Algorithm
intervals
Results
14.0ms123×body320valid
13.0ms264×body80nan
11.0ms520×pre80true
6.0ms85×body160valid
3.0ms16×body640valid
1.0ms32×body80valid

simplify11.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0249
1459
2799
3979
41059
51059

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 52.1b

localize12.0ms

Local error

Found 4 expressions with local error:

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

rewrite55.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-/l*
distribute-rgt-neg-in sqrt-prod
cbrt-undiv neg-sub0 associate-+l- flip3-- flip3-+ sqrt-div div-exp sum-log flip-- flip-+ associate-/l/
+-commutative 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 → 70
Calls
4 calls:
4.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
36.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
3.0ms
(- (* b b) (* (* 4.0 a) c))
11.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))

series302.0ms

Counts
4 → 12
Calls
4 calls:
71.0ms
(sqrt (- (* b b) (* (* 4.0 a) c)))
105.0ms
(/ (+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))) (* 2.0 a))
44.0ms
(- (* b b) (* (* 4.0 a) c))
81.0ms
(+ (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))

simplify45.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
0405779
11563685
25002674

prune194.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.1b

localize22.0ms

Local error

Found 4 expressions with local error:

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

rewrite91.0ms

Algorithm
rewrite-expression-head
Rules
90×times-frac
82×add-sqr-sqrt *-un-lft-identity
38×add-cube-cbrt
30×associate-/l*
22×distribute-lft-out-- difference-of-squares
18×add-exp-log add-cbrt-cube
11×distribute-rgt-neg-in sqrt-prod
10×add-log-exp
associate-/r*
cbrt-undiv div-exp
associate-/r/
flip3-- flip--
pow1 div-inv
diff-log associate-/l/
sub-neg frac-2neg prod-exp clear-num cbrt-unprod
associate--l- neg-sub0 flip3-+ neg-log flip-+
Counts
4 → 151
Calls
4 calls:
12.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
3.0ms
(- (* b b) (* (* 4.0 a) c))
29.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
42.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))

series454.0ms

Counts
4 → 12
Calls
4 calls:
79.0ms
(- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))
44.0ms
(- (* b b) (* (* 4.0 a) c))
186.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c)))))
145.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) (* 2.0 a))

simplify112.0ms

Algorithm
egg-herbie
Counts
163 → 163
Iterations

Useful iterations: 2 (91.0ms)

IterNodesCost
06422664
131752400
250022388

prune420.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0b

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite173.0ms

Algorithm
rewrite-expression-head
Rules
389×times-frac
281×add-sqr-sqrt
255×*-un-lft-identity
169×add-cube-cbrt
117×add-exp-log
85×associate-*r*
77×add-cbrt-cube
62×div-exp
42×distribute-lft-out-- difference-of-squares
37×cbrt-undiv
33×associate-/l*
27×prod-exp
26×associate-*l*
21×distribute-rgt-neg-in sqrt-prod
19×div-inv
17×cbrt-unprod
16×associate-/r/
11×associate-/r*
unswap-sqr
flip3-- flip--
pow1
rec-exp 1-exp
add-log-exp
frac-2neg clear-num
frac-times associate-*r/ pow-prod-down associate-*l/ *-commutative associate-/l/
Counts
4 → 360
Calls
4 calls:
3.0ms
(/ 2.0 (* a c))
39.0ms
(/ (/ 1 (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) a)
5.0ms
(/ 4.0 (/ 2.0 (* a c)))
106.0ms
(* (/ 4.0 (/ 2.0 (* a c))) (/ (/ 1 (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) a))

series318.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(/ 2.0 (* a c))
120.0ms
(/ (/ 1 (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) a)
19.0ms
(/ 4.0 (/ 2.0 (* a c)))
153.0ms
(* (/ 4.0 (/ 2.0 (* a c))) (/ (/ 1 (- (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) a))

simplify74.0ms

Algorithm
egg-herbie
Counts
372 → 372
Iterations

Useful iterations: 1 (31.0ms)

IterNodesCost
014745495
150024888

prune886.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 0b

localize28.0ms

Local error

Found 4 expressions with local error:

0.2b
(pow (sqrt (- (* b b) (* (* 4.0 a) c))) 3)
0.3b
(/ a (/ (+ (+ (pow b 2) (- (* b b) (* (* 4.0 a) c))) (* (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) 2.0))
0.3b
(/ (+ 0 (* 4.0 (* a c))) (- (pow (- b) 3) (pow (sqrt (- (* b b) (* (* 4.0 a) c))) 3)))
0.3b
(/ (/ (+ 0 (* 4.0 (* a c))) (- (pow (- b) 3) (pow (sqrt (- (* b b) (* (* 4.0 a) c))) 3))) (/ a (/ (+ (+ (pow b 2) (- (* b b) (* (* 4.0 a) c))) (* (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) 2.0)))

rewrite1.4s

Algorithm
rewrite-expression-head
Rules
18117×times-frac
11350×add-sqr-sqrt
8570×*-un-lft-identity
6068×add-cube-cbrt
3336×difference-of-squares
3064×unpow-prod-down cube-prod
1391×sqr-pow
1251×distribute-lft-out--
1118×sqrt-prod
556×distribute-rgt-neg-in
524×div-inv
212×associate-/r/
139×difference-cubes
123×associate-/l*
94×associate-/r*
47×flip3-- flip--
33×add-exp-log add-cbrt-cube
19×cbrt-undiv div-exp
pow1
add-log-exp
pow-unpow pow-pow frac-2neg clear-num associate-/l/
cube-div sqrt-div
cube-mult pow-to-exp sqrt-pow1 flip3-+ pow1/2 unpow3 pow-exp sqrt-pow2 flip-+ rem-cube-cbrt
Counts
4 → 5604
Calls
4 calls:
5.0ms
(pow (sqrt (- (* b b) (* (* 4.0 a) c))) 3)
70.0ms
(/ a (/ (+ (+ (pow b 2) (- (* b b) (* (* 4.0 a) c))) (* (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) 2.0))
85.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (pow (- b) 3) (pow (sqrt (- (* b b) (* (* 4.0 a) c))) 3)))
319.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (pow (- b) 3) (pow (sqrt (- (* b b) (* (* 4.0 a) c))) 3))) (/ a (/ (+ (+ (pow b 2) (- (* b b) (* (* 4.0 a) c))) (* (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) 2.0)))

series1.0s

Counts
4 → 12
Calls
4 calls:
45.0ms
(pow (sqrt (- (* b b) (* (* 4.0 a) c))) 3)
279.0ms
(/ a (/ (+ (+ (pow b 2) (- (* b b) (* (* 4.0 a) c))) (* (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) 2.0))
331.0ms
(/ (+ 0 (* 4.0 (* a c))) (- (pow (- b) 3) (pow (sqrt (- (* b b) (* (* 4.0 a) c))) 3)))
363.0ms
(/ (/ (+ 0 (* 4.0 (* a c))) (- (pow (- b) 3) (pow (sqrt (- (* b b) (* (* 4.0 a) c))) 3))) (/ a (/ (+ (+ (pow b 2) (- (* b b) (* (* 4.0 a) c))) (* (- b) (sqrt (- (* b b) (* (* 4.0 a) c))))) 2.0)))

simplify2.9s

Algorithm
egg-herbie
Counts
5616 → 5616
Iterations

Useful iterations: 0 (46.0ms)

IterNodesCost
05001350019

prune14.7s

Pruning

6 alts after pruning (5 fresh and 1 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

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02513
12513

end0.0ms

sample1.8s

Algorithm
intervals
Results
409.0ms3578×body320valid
353.0ms16233×pre80true
303.0ms8233×body80nan
235.0ms3050×body160valid
77.0ms501×body640valid
34.0ms871×body80valid