Details

Time bar (total: 2.6s)

sample19.0ms

Algorithm
intervals
Results
7.0ms256×pre80true
5.0ms256×body80valid

simplify14.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0113
1253
2533
3803
4983
51073
61133
71133

prune1.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.0b

localize6.0ms

Local error

Found 1 expressions with local error:

0.0b
(* (+ a b) (+ a b))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
19×*-un-lft-identity
pow1
add-sqr-sqrt
flip3-+ swap-sqr flip-+ distribute-lft-out
add-cube-cbrt
frac-times associate-*r* associate-*l*
add-exp-log add-cbrt-cube
associate-*r/ associate-*l/
pow2 distribute-rgt-in distribute-lft-in pow-plus pow-prod-down prod-exp pow-sqr *-commutative pow-prod-up cbrt-unprod add-log-exp unswap-sqr
Counts
1 → 40
Calls
1 calls:
17.0ms
(* (+ a b) (+ a b))

series14.0ms

Counts
1 → 3
Calls
1 calls:
14.0ms
(* (+ a b) (+ a b))

simplify33.0ms

Algorithm
egg-herbie
Counts
43 → 43
Iterations

Useful iterations: 2 (29.0ms)

IterNodesCost
0189213
1902188
25001170

prune49.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.0b

localize18.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (pow a 2) (* b (- b a)))
0.3b
(* (- a b) (+ (pow a 2) (* b (- b a))))
0.4b
(* (- (* a a) (* b b)) (+ (pow a 3) (pow b 3)))
0.4b
(/ (* (- (* a a) (* b b)) (+ (pow a 3) (pow b 3))) (* (- a b) (+ (pow a 2) (* b (- b a)))))

rewrite133.0ms

Algorithm
rewrite-expression-head
Rules
20×add-exp-log *-un-lft-identity add-cbrt-cube
16×frac-times
14×add-sqr-sqrt
13×flip3-+ flip-+
12×flip3-- associate-*r* flip--
associate-*l*
pow1 add-cube-cbrt associate-*r/ associate-*l/ associate-/r/ associate-/l/
prod-exp cbrt-unprod add-log-exp
distribute-lft-out
cbrt-undiv distribute-rgt-in unpow-prod-down associate-+r+ distribute-lft-in cube-prod div-exp
sub-neg pow-prod-down *-commutative difference-of-squares unswap-sqr
+-commutative frac-2neg times-frac clear-num associate-/r* sum-log sum-cubes div-inv associate-/l* distribute-lft-out--
Counts
4 → 117
Calls
4 calls:
7.0ms
(+ (pow a 2) (* b (- b a)))
27.0ms
(* (- a b) (+ (pow a 2) (* b (- b a))))
62.0ms
(* (- (* a a) (* b b)) (+ (pow a 3) (pow b 3)))
32.0ms
(/ (* (- (* a a) (* b b)) (+ (pow a 3) (pow b 3))) (* (- a b) (+ (pow a 2) (* b (- b a)))))

series239.0ms

Counts
4 → 12
Calls
4 calls:
21.0ms
(+ (pow a 2) (* b (- b a)))
50.0ms
(* (- a b) (+ (pow a 2) (* b (- b a))))
89.0ms
(* (- (* a a) (* b b)) (+ (pow a 3) (pow b 3)))
78.0ms
(/ (* (- (* a a) (* b b)) (+ (pow a 3) (pow b 3))) (* (- a b) (+ (pow a 2) (* b (- b a)))))

simplify38.0ms

Algorithm
egg-herbie
Counts
129 → 129
Iterations

Useful iterations: 1 (24.0ms)

IterNodesCost
07941555
150011317

prune412.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0b

localize12.0ms

Local error

Found 2 expressions with local error:

0.0b
(+ (pow a 2) (+ (* 2 (* a b)) (pow b 2)))
0.0b
(+ (* 2 (* a b)) (pow b 2))

rewrite34.0ms

Algorithm
rewrite-expression-head
Rules
add-log-exp
*-un-lft-identity sum-log
pow1 add-exp-log +-commutative add-sqr-sqrt add-cube-cbrt flip3-+ add-cbrt-cube flip-+
associate-+r+ distribute-lft-out
Counts
2 → 25
Calls
2 calls:
26.0ms
(+ (pow a 2) (+ (* 2 (* a b)) (pow b 2)))
8.0ms
(+ (* 2 (* a b)) (pow b 2))

series68.0ms

Counts
2 → 6
Calls
2 calls:
25.0ms
(+ (pow a 2) (+ (* 2 (* a b)) (pow b 2)))
42.0ms
(+ (* 2 (* a b)) (pow b 2))

simplify136.0ms

Algorithm
egg-herbie
Counts
31 → 31
Iterations

Useful iterations: 2 (22.0ms)

IterNodesCost
0163237
1744220
23894212
35001212

prune66.0ms

Pruning

3 alts after pruning (1 fresh and 2 done)

Merged error: 0b

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* 2 (* a b)) (pow b 2))
0.0b
(+ (* 2 (* a b)) (pow b 2))
0.2b
(* (+ (* 2 (* a b)) (pow b 2)) (+ (* 2 (* a b)) (pow b 2)))
0.5b
(/ (+ (pow a 4) (- (* (+ (* 2 (* a b)) (pow b 2)) (+ (* 2 (* a b)) (pow b 2))))) (- (pow a 2) (+ (* 2 (* a b)) (pow b 2))))

rewrite152.0ms

Algorithm
rewrite-expression-head
Rules
54×add-sqr-sqrt
50×*-un-lft-identity
32×times-frac
22×add-cube-cbrt
20×difference-of-squares
11×pow1
flip3-+ flip-+ distribute-lft-out
add-exp-log associate-/r* add-cbrt-cube add-log-exp
unpow-prod-down distribute-lft-out-- unpow2 sqr-pow
frac-times associate-/l*
div-sub swap-sqr associate-*r* associate-*l*
+-commutative associate-*r/ associate-*l/ sum-log associate-/r/ associate-/l/
cbrt-undiv pow2 neg-sub0 distribute-rgt-in associate-+r- flip3-- frac-2neg distribute-lft-in pow-plus div-exp unsub-neg pow-prod-down prod-exp clear-num pow-sqr *-commutative pow-prod-up flip-- cbrt-unprod div-inv unswap-sqr
Counts
4 → 120
Calls
4 calls:
8.0ms
(+ (* 2 (* a b)) (pow b 2))
8.0ms
(+ (* 2 (* a b)) (pow b 2))
60.0ms
(* (+ (* 2 (* a b)) (pow b 2)) (+ (* 2 (* a b)) (pow b 2)))
71.0ms
(/ (+ (pow a 4) (- (* (+ (* 2 (* a b)) (pow b 2)) (+ (* 2 (* a b)) (pow b 2))))) (- (pow a 2) (+ (* 2 (* a b)) (pow b 2))))

series178.0ms

Counts
4 → 12
Calls
4 calls:
43.0ms
(+ (* 2 (* a b)) (pow b 2))
46.0ms
(+ (* 2 (* a b)) (pow b 2))
25.0ms
(* (+ (* 2 (* a b)) (pow b 2)) (+ (* 2 (* a b)) (pow b 2)))
64.0ms
(/ (+ (pow a 4) (- (* (+ (* 2 (* a b)) (pow b 2)) (+ (* 2 (* a b)) (pow b 2))))) (- (pow a 2) (+ (* 2 (* a b)) (pow b 2))))

simplify99.0ms

Algorithm
egg-herbie
Counts
132 → 132
Iterations

Useful iterations: 2 (74.0ms)

IterNodesCost
04852560
125972354
250022310

prune323.0ms

Pruning

3 alts after pruning (0 fresh and 3 done)

Merged error: 0b

regimes35.0ms

Accuracy

0% (0.0b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0136
1136

end0.0ms

sample519.0ms

Algorithm
intervals
Results
226.0ms8000×pre80true
165.0ms8000×body80valid