Details

Time bar (total: 7.0s)

sample40.0ms

Algorithm
intervals
Results
15.0ms256×body80valid
14.0ms245×body80nan

simplify14.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0217
1397
2617
3807
41057
51147
61147

prune5.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.3b

localize9.0ms

Local error

Found 2 expressions with local error:

0.0b
(+ (+ x 1.0) (* 4.0 (sqrt x)))
0.3b
(/ (* 6.0 (- x 1.0)) (+ (+ x 1.0) (* 4.0 (sqrt x))))

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
add-exp-log add-cbrt-cube add-log-exp
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
times-frac associate-/r* sum-log
pow1 cbrt-undiv flip3-+ associate-*r/ div-exp associate-/r/ flip-+ associate-/l/
+-commutative associate-+l+ flip3-- frac-2neg prod-exp clear-num flip-- cbrt-unprod div-inv associate-/l*
Counts
2 → 38
Calls
2 calls:
13.0ms
(+ (+ x 1.0) (* 4.0 (sqrt x)))
23.0ms
(/ (* 6.0 (- x 1.0)) (+ (+ x 1.0) (* 4.0 (sqrt x))))

series10.0ms

Counts
2 → 6
Calls
2 calls:
3.0ms
(+ (+ x 1.0) (* 4.0 (sqrt x)))
6.0ms
(/ (* 6.0 (- x 1.0)) (+ (+ x 1.0) (* 4.0 (sqrt x))))

simplify37.0ms

Algorithm
egg-herbie
Counts
44 → 44
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0310397
11293333
25001328

prune283.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (+ (+ x 1.0) (* 4.0 (sqrt x))))
0.1b
(/ 6.0 (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x)))))
0.2b
(* (/ 6.0 (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x))))) (/ (- x 1.0) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x))))))
0.2b
(/ (- x 1.0) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x)))))

rewrite172.0ms

Algorithm
rewrite-expression-head
Rules
126×add-sqr-sqrt
108×times-frac
95×*-un-lft-identity
69×add-cube-cbrt
63×sqrt-prod
36×associate-*r*
24×associate-*l*
20×add-exp-log add-cbrt-cube
13×distribute-lft-out-- difference-of-squares
12×associate-/r*
10×sqrt-div
unswap-sqr
associate-/r/ associate-/l*
pow1
cbrt-undiv div-exp
flip3-+ flip-+
prod-exp cbrt-unprod div-inv add-log-exp
frac-2neg clear-num associate-/l/
frac-times rem-sqrt-square flip3-- sqrt-pow1 pow1/2 div-sub associate-*r/ pow-prod-down associate-*l/ *-commutative flip--
Counts
4 → 203
Calls
4 calls:
15.0ms
(sqrt (+ (+ x 1.0) (* 4.0 (sqrt x))))
18.0ms
(/ 6.0 (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x)))))
103.0ms
(* (/ 6.0 (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x))))) (/ (- x 1.0) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x))))))
25.0ms
(/ (- x 1.0) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x)))))

series28.0ms

Counts
4 → 12
Calls
4 calls:
5.0ms
(sqrt (+ (+ x 1.0) (* 4.0 (sqrt x))))
8.0ms
(/ 6.0 (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x)))))
6.0ms
(* (/ 6.0 (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x))))) (/ (- x 1.0) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x))))))
9.0ms
(/ (- x 1.0) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x)))))

simplify94.0ms

Algorithm
egg-herbie
Counts
215 → 215
Iterations

Useful iterations: 2 (68.0ms)

IterNodesCost
07723129
133692865
250012758

prune1.4s

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 0b

localize15.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (* (/ (- x 1.0) (+ (* (- (* 4.0 4.0)) x) (* (+ x 1.0) (+ x 1.0)))) 6.0) (- (+ x 1.0) (* 4.0 (sqrt x))))
0.2b
(* (/ (- x 1.0) (+ (* (- (* 4.0 4.0)) x) (* (+ x 1.0) (+ x 1.0)))) 6.0)
0.2b
(+ (* (- (* 4.0 4.0)) x) (* (+ x 1.0) (+ x 1.0)))
15.7b
(/ (- x 1.0) (+ (* (- (* 4.0 4.0)) x) (* (+ x 1.0) (+ x 1.0))))

rewrite104.0ms

Algorithm
rewrite-expression-head
Rules
44×add-sqr-sqrt
39×*-un-lft-identity
31×times-frac
25×add-cube-cbrt
22×associate-*l*
20×add-exp-log add-cbrt-cube
11×pow1
prod-exp cbrt-unprod distribute-lft-out-- difference-of-squares
associate-*r* add-log-exp
associate-*l/ associate-/l*
distribute-rgt-in distribute-lft-in pow-prod-down associate-/r/
cbrt-undiv flip3-- flip3-+ div-exp associate-/r* flip-- flip-+
frac-times sub-neg associate-+r+ associate-*r/ associate--l+ *-commutative div-inv associate-/l/ unswap-sqr
+-commutative frac-2neg div-sub clear-num sum-log
Counts
4 → 124
Calls
4 calls:
60.0ms
(* (* (/ (- x 1.0) (+ (* (- (* 4.0 4.0)) x) (* (+ x 1.0) (+ x 1.0)))) 6.0) (- (+ x 1.0) (* 4.0 (sqrt x))))
25.0ms
(* (/ (- x 1.0) (+ (* (- (* 4.0 4.0)) x) (* (+ x 1.0) (+ x 1.0)))) 6.0)
4.0ms
(+ (* (- (* 4.0 4.0)) x) (* (+ x 1.0) (+ x 1.0)))
11.0ms
(/ (- x 1.0) (+ (* (- (* 4.0 4.0)) x) (* (+ x 1.0) (+ x 1.0))))

series23.0ms

Counts
4 → 12
Calls
4 calls:
9.0ms
(* (* (/ (- x 1.0) (+ (* (- (* 4.0 4.0)) x) (* (+ x 1.0) (+ x 1.0)))) 6.0) (- (+ x 1.0) (* 4.0 (sqrt x))))
5.0ms
(* (/ (- x 1.0) (+ (* (- (* 4.0 4.0)) x) (* (+ x 1.0) (+ x 1.0)))) 6.0)
3.0ms
(+ (* (- (* 4.0 4.0)) x) (* (+ x 1.0) (+ x 1.0)))
5.0ms
(/ (- x 1.0) (+ (* (- (* 4.0 4.0)) x) (* (+ x 1.0) (+ x 1.0))))

simplify97.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (76.0ms)

IterNodesCost
06792076
131091821
250011802

prune1.1s

Pruning

4 alts after pruning (1 fresh and 3 done)

Merged error: 0b

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (sqrt (- x 1.0)) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x)))))
0.0b
(* (/ (* 6.0 (sqrt (- x 1.0))) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x))))) (/ (sqrt (- x 1.0)) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x))))))
0.1b
(/ (* 6.0 (sqrt (- x 1.0))) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x)))))
0.2b
(* 6.0 (sqrt (- x 1.0)))

rewrite187.0ms

Algorithm
rewrite-expression-head
Rules
135×sqrt-prod
121×add-sqr-sqrt
112×times-frac
103×*-un-lft-identity
75×add-cube-cbrt
62×associate-*r*
34×add-exp-log add-cbrt-cube
15×associate-*l*
14×sqrt-div distribute-lft-out-- difference-of-squares
12×associate-/r*
10×cbrt-undiv div-exp prod-exp cbrt-unprod
associate-/l*
pow1 associate-/r/
unswap-sqr
associate-*r/
flip3-+ flip-+ div-inv associate-/l/ add-log-exp
flip3-- flip--
frac-2neg pow-prod-down clear-num *-commutative
frac-times sqrt-undiv associate-*l/
Counts
4 → 231
Calls
4 calls:
24.0ms
(/ (sqrt (- x 1.0)) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x)))))
115.0ms
(* (/ (* 6.0 (sqrt (- x 1.0))) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x))))) (/ (sqrt (- x 1.0)) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x))))))
22.0ms
(/ (* 6.0 (sqrt (- x 1.0))) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x)))))
11.0ms
(* 6.0 (sqrt (- x 1.0)))

series30.0ms

Counts
4 → 12
Calls
4 calls:
9.0ms
(/ (sqrt (- x 1.0)) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x)))))
7.0ms
(* (/ (* 6.0 (sqrt (- x 1.0))) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x))))) (/ (sqrt (- x 1.0)) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x))))))
10.0ms
(/ (* 6.0 (sqrt (- x 1.0))) (sqrt (+ (+ x 1.0) (* 4.0 (sqrt x)))))
5.0ms
(* 6.0 (sqrt (- x 1.0)))

simplify138.0ms

Algorithm
egg-herbie
Counts
243 → 243
Iterations

Useful iterations: 2 (106.0ms)

IterNodesCost
08703904
147233480
250013421

prune1.9s

Pruning

4 alts after pruning (0 fresh and 4 done)

Merged error: 0b

regimes138.0ms

Accuracy

0% (0.3b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01714
11714

end0.0ms

sample1.1s

Algorithm
intervals
Results
482.0ms8000×body80valid
447.0ms8078×body80nan