Details

Time bar (total: 3.6s)

sample41.0ms

Algorithm
intervals
Results
25.0ms683×body80valid

simplify55.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0258
1418
2678
31198
43098
514858
650028

prune2.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 0.2b

Counts
2 → 1

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (* b b)))
0.0b
(+ (* a a) (* b b))
0.0b
(* 4.0 (* b b))
0.3b
(pow (+ (* a a) (* b b)) 2.0)

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
+-commutative flip3-+ associate-*r* *-commutative flip-+
pow-to-exp sqr-pow
Counts
4 → 11
Calls
4 calls:
7.0ms
(+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (* b b)))
4.0ms
(+ (* a a) (* b b))
3.0ms
(* 4.0 (* b b))
4.0ms
(pow (+ (* a a) (* b b)) 2.0)

series220.0ms

Counts
4 → 12
Calls
4 calls:
65.0ms
(+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (* b b)))
26.0ms
(+ (* a a) (* b b))
27.0ms
(* 4.0 (* b b))
101.0ms
(pow (+ (* a a) (* b b)) 2.0)

simplify75.0ms

Algorithm
egg-herbie
Counts
23 → 23
Iterations

Useful iterations: 1 (6.0ms)

IterNodesCost
0173135
1695127
22430127
35001127

prune59.0ms

Filtered
23 candidates to 16 candidates (69.6%)
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New20323
Fresh000
Picked101
Done000
Total21324

Merged error: 0.0b

Counts
24 → 3

localize13.0ms

Local error

Found 4 expressions with local error:

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

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
14×associate-*r*
12×unpow2 sqr-pow
unswap-sqr
associate-*l*
+-commutative *-commutative
pow-to-exp associate-+r+ flip3-+ flip-+
pow-prod-down prod-exp
Counts
4 → 30
Calls
4 calls:
9.0ms
(+ (pow a 4) (+ (pow b 4) (* 2 (* (pow a 2) (pow b 2)))))
7.0ms
(+ (pow b 4) (* 2 (* (pow a 2) (pow b 2))))
5.0ms
(* 2 (* (pow a 2) (pow b 2)))
5.0ms
(* (pow a 2) (pow b 2))

series172.0ms

Counts
4 → 12
Calls
4 calls:
49.0ms
(+ (pow a 4) (+ (pow b 4) (* 2 (* (pow a 2) (pow b 2)))))
52.0ms
(+ (pow b 4) (* 2 (* (pow a 2) (pow b 2))))
36.0ms
(* 2 (* (pow a 2) (pow b 2)))
35.0ms
(* (pow a 2) (pow b 2))

simplify296.0ms

Algorithm
egg-herbie
Counts
42 → 42
Iterations

Useful iterations: 2 (27.0ms)

IterNodesCost
0183234
1813198
24764197
35001197

prune101.0ms

Filtered
42 candidates to 27 candidates (64.3%)
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New42042
Fresh022
Picked011
Done000
Total42345

Merged error: 0.0b

Counts
45 → 3

localize20.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 4.0 (* b b))
0.1b
(* (- (pow b 3)) b)
0.3b
(pow (/ (+ (* (- (pow b 3)) b) (pow a 4)) (- (* a a) (* b b))) 2.0)
19.9b
(/ (+ (* (- (pow b 3)) b) (pow a 4)) (- (* a a) (* b b)))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
*-commutative
associate-*l*
associate-/r* associate-/r/ difference-of-squares
unpow-prod-down sqr-pow
distribute-lft-neg-in flip3-- distribute-rgt-neg-in unpow3 associate-*r* flip-- div-inv associate-/l/
distribute-lft-neg-out pow-to-exp neg-mul-1 frac-2neg flip3-+ clear-num flip-+
Counts
4 → 26
Calls
4 calls:
3.0ms
(* 4.0 (* b b))
3.0ms
(* (- (pow b 3)) b)
7.0ms
(pow (/ (+ (* (- (pow b 3)) b) (pow a 4)) (- (* a a) (* b b))) 2.0)
10.0ms
(/ (+ (* (- (pow b 3)) b) (pow a 4)) (- (* a a) (* b b)))

series272.0ms

Counts
4 → 12
Calls
4 calls:
25.0ms
(* 4.0 (* b b))
38.0ms
(* (- (pow b 3)) b)
135.0ms
(pow (/ (+ (* (- (pow b 3)) b) (pow a 4)) (- (* a a) (* b b))) 2.0)
74.0ms
(/ (+ (* (- (pow b 3)) b) (pow a 4)) (- (* a a) (* b b)))

simplify32.0ms

Algorithm
egg-herbie
Counts
38 → 38
Iterations

Useful iterations: 2 (28.0ms)

IterNodesCost
0213228
1893192
25001182

prune106.0ms

Filtered
38 candidates to 27 candidates (71.1%)
Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New38038
Fresh011
Picked011
Done011
Total38341

Merged error: 0.0b

Counts
41 → 3

localize21.0ms

Local error

Found 4 expressions with local error:

0.2b
(+ (* (- (* 4.0 4.0)) (pow b 4)) (pow (+ (* a a) (* b b)) (* 2 2.0)))
0.3b
(pow (+ (* a a) (* b b)) (* 2 2.0))
0.3b
(pow (+ (* a a) (* b b)) 2.0)
35.8b
(/ (+ (* (- (* 4.0 4.0)) (pow b 4)) (pow (+ (* a a) (* b b)) (* 2 2.0))) (- (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (* b b))))

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
pow-to-exp pow-unpow flip3-+ associate-/r/ flip-+ associate-/l/ sqr-pow
+-commutative flip3-- frac-2neg clear-num *-commutative flip-- div-inv
Counts
4 → 16
Calls
4 calls:
12.0ms
(+ (* (- (* 4.0 4.0)) (pow b 4)) (pow (+ (* a a) (* b b)) (* 2 2.0)))
4.0ms
(pow (+ (* a a) (* b b)) (* 2 2.0))
4.0ms
(pow (+ (* a a) (* b b)) 2.0)
18.0ms
(/ (+ (* (- (* 4.0 4.0)) (pow b 4)) (pow (+ (* a a) (* b b)) (* 2 2.0))) (- (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (* b b))))

series614.0ms

Counts
4 → 12
Calls
4 calls:
238.0ms
(+ (* (- (* 4.0 4.0)) (pow b 4)) (pow (+ (* a a) (* b b)) (* 2 2.0)))
103.0ms
(pow (+ (* a a) (* b b)) (* 2 2.0))
105.0ms
(pow (+ (* a a) (* b b)) 2.0)
168.0ms
(/ (+ (* (- (* 4.0 4.0)) (pow b 4)) (pow (+ (* a a) (* b b)) (* 2 2.0))) (- (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (* b b))))

simplify39.0ms

Algorithm
egg-herbie
Counts
28 → 28
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0252318
11089282
25001275

prune109.0ms

Filtered
28 candidates to 26 candidates (92.9%)
Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New28028
Fresh000
Picked011
Done022
Total28331

Merged error: 0.0b

Counts
31 → 3

regimes55.0ms

Accuracy

0% (1.0b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0189
1189

end0.0ms

sample1.1s

Algorithm
intervals
Results
794.0ms20539×body80valid