Details

Time bar (total: 5.4s)

sample55.0ms

Algorithm
intervals
Results
36.0ms703×body80valid

simplify54.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 2 (8.0ms)

IterNodesCost
05515
117914
256113
3182413
4500213

prune10.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.2b

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma 4.0 (fma (* a a) (+ 1.0 a) (* (* b b) (- 1.0 (* 3.0 a)))) (- (pow (+ (* a a) (* b b)) 2.0) 1.0))
0.1b
(fma (* a a) (+ 1.0 a) (* (* b b) (- 1.0 (* 3.0 a))))
0.3b
(pow (+ (* a a) (* b b)) 2.0)
1.0b
(* (* b b) (- 1.0 (* 3.0 a)))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
10×pow1 add-exp-log add-sqr-sqrt
add-cube-cbrt *-un-lft-identity add-cbrt-cube
prod-diff
distribute-rgt-in distribute-lft-in
expm1-log1p-u log1p-expm1-u add-log-exp
unpow-prod-down pow-unpow associate-*r* pow-prod-down prod-exp cbrt-unprod
sub-neg associate-*r/ fma-udef
pow-to-exp flip3-- pow-pow associate-*l* pow-exp *-commutative flip-- unswap-sqr sqr-pow
Counts
4 → 72
Calls
4 calls:
0.0ms
(fma 4.0 (fma (* a a) (+ 1.0 a) (* (* b b) (- 1.0 (* 3.0 a)))) (- (pow (+ (* a a) (* b b)) 2.0) 1.0))
0.0ms
(fma (* a a) (+ 1.0 a) (* (* b b) (- 1.0 (* 3.0 a))))
4.0ms
(pow (+ (* a a) (* b b)) 2.0)
13.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

series321.0ms

Counts
4 → 12
Calls
4 calls:
109.0ms
(fma 4.0 (fma (* a a) (+ 1.0 a) (* (* b b) (- 1.0 (* 3.0 a)))) (- (pow (+ (* a a) (* b b)) 2.0) 1.0))
51.0ms
(fma (* a a) (+ 1.0 a) (* (* b b) (- 1.0 (* 3.0 a))))
105.0ms
(pow (+ (* a a) (* b b)) 2.0)
56.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

simplify54.0ms

Algorithm
egg-herbie
Counts
84 → 84
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0391706
11680606
25001592

prune305.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 0.0b

localize21.0ms

Local error

Found 4 expressions with local error:

0.3b
(pow (+ (* a a) (* b b)) 2.0)
1.0b
(* (* b b) (- 1.0 (* 3.0 a)))
1.0b
(* (* b b) (- 1.0 (* 3.0 a)))
1.0b
(* (* b b) (- 1.0 (* 3.0 a)))

rewrite50.0ms

Algorithm
rewrite-expression-head
Rules
20×pow1 add-exp-log
19×add-cbrt-cube
18×add-sqr-sqrt prod-diff
15×distribute-rgt-in add-cube-cbrt *-un-lft-identity distribute-lft-in
associate-*r* pow-prod-down prod-exp cbrt-unprod
sub-neg associate-*r/
expm1-log1p-u log1p-expm1-u add-log-exp
unpow-prod-down pow-unpow flip3-- associate-*l* *-commutative flip-- unswap-sqr
pow-to-exp pow-pow pow-exp sqr-pow
Counts
4 → 118
Calls
4 calls:
4.0ms
(pow (+ (* a a) (* b b)) 2.0)
16.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
12.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
13.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

series286.0ms

Counts
4 → 12
Calls
4 calls:
121.0ms
(pow (+ (* a a) (* b b)) 2.0)
54.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
56.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
55.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

simplify53.0ms

Algorithm
egg-herbie
Counts
130 → 130
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0304905
11350773
25002753

prune533.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 0.0b

localize27.0ms

Local error

Found 4 expressions with local error:

1.0b
(* (* b b) (- 1.0 (* 3.0 a)))
10.9b
(cbrt (+ (* a a) (* b b)))
10.9b
(cbrt (+ (* a a) (* b b)))
10.9b
(cbrt (+ (* a a) (* b b)))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt
10×add-cube-cbrt *-un-lft-identity
pow1 add-exp-log cbrt-prod add-cbrt-cube
cbrt-div prod-diff
distribute-rgt-in distribute-lft-in
expm1-log1p-u log1p-expm1-u add-log-exp
flip3-+ pow1/3 associate-*r* pow-prod-down prod-exp cbrt-unprod flip-+
sub-neg associate-*r/
flip3-- associate-*l* *-commutative flip-- unswap-sqr
Counts
4 → 78
Calls
4 calls:
13.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
2.0ms
(cbrt (+ (* a a) (* b b)))
2.0ms
(cbrt (+ (* a a) (* b b)))
2.0ms
(cbrt (+ (* a a) (* b b)))

series398.0ms

Counts
4 → 12
Calls
4 calls:
64.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
113.0ms
(cbrt (+ (* a a) (* b b)))
109.0ms
(cbrt (+ (* a a) (* b b)))
111.0ms
(cbrt (+ (* a a) (* b b)))

simplify52.0ms

Algorithm
egg-herbie
Counts
90 → 90
Iterations

Useful iterations: 2 (43.0ms)

IterNodesCost
0331646
11480584
25001567

prune439.0ms

Pruning

6 alts after pruning (3 fresh and 3 done)

Merged error: 0.0b

localize32.0ms

Local error

Found 4 expressions with local error:

10.9b
(cbrt (+ (* a a) (* b b)))
10.9b
(cbrt (+ (* a a) (* b b)))
10.9b
(cbrt (+ (* a a) (* b b)))
10.9b
(cbrt (+ (* a a) (* b b)))

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
12×cbrt-prod
add-sqr-sqrt add-cube-cbrt cbrt-div *-un-lft-identity
pow1 add-exp-log expm1-log1p-u flip3-+ pow1/3 add-cbrt-cube flip-+ log1p-expm1-u add-log-exp
Counts
4 → 60
Calls
4 calls:
2.0ms
(cbrt (+ (* a a) (* b b)))
2.0ms
(cbrt (+ (* a a) (* b b)))
2.0ms
(cbrt (+ (* a a) (* b b)))
2.0ms
(cbrt (+ (* a a) (* b b)))

series457.0ms

Counts
4 → 12
Calls
4 calls:
114.0ms
(cbrt (+ (* a a) (* b b)))
112.0ms
(cbrt (+ (* a a) (* b b)))
113.0ms
(cbrt (+ (* a a) (* b b)))
117.0ms
(cbrt (+ (* a a) (* b b)))

simplify60.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 2 (16.0ms)

IterNodesCost
0132524
1449488
21529476
35001476

prune513.0ms

Pruning

6 alts after pruning (2 fresh and 4 done)

Merged error: 0.0b

regimes115.0ms

Accuracy

0% (0.1b remaining)

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

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
02113
12113

end0.0ms

sample1.5s

Algorithm
intervals
Results
1.1s20546×body80valid