Details

Time bar (total: 4.9s)

sample55.0ms

Algorithm
intervals
Results
37.0ms676×body80valid

simplify52.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 2 (8.0ms)

IterNodesCost
05515
117914
256113
3182413
4500213

prune7.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.2b

localize20.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)
0.6b
(* (* 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)))

series310.0ms

Counts
4 → 12
Calls
4 calls:
105.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))
50.0ms
(fma (* a a) (+ 1.0 a) (* (* b b) (- 1.0 (* 3.0 a))))
107.0ms
(pow (+ (* a a) (* b b)) 2.0)
48.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

simplify48.0ms

Algorithm
egg-herbie
Counts
84 → 84
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0391706
11680606
25001592

prune267.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0.0b

localize20.0ms

Local error

Found 4 expressions with local error:

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

rewrite45.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)
12.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
12.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
12.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

series256.0ms

Counts
4 → 12
Calls
4 calls:
104.0ms
(pow (+ (* a a) (* b b)) 2.0)
47.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
53.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
52.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

simplify53.0ms

Algorithm
egg-herbie
Counts
130 → 130
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
0304905
11350773
25002753

prune487.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 0.0b

localize24.0ms

Local error

Found 4 expressions with local error:

0.6b
(* (* b b) (- 1.0 (* 3.0 a)))
10.8b
(cbrt (+ (* a a) (* b b)))
10.8b
(cbrt (+ (* a a) (* b b)))
10.8b
(cbrt (+ (* a a) (* b b)))

rewrite34.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:
23.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
3.0ms
(cbrt (+ (* a a) (* b b)))
2.0ms
(cbrt (+ (* a a) (* b b)))
2.0ms
(cbrt (+ (* a a) (* b b)))

series357.0ms

Counts
4 → 12
Calls
4 calls:
55.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
93.0ms
(cbrt (+ (* a a) (* b b)))
93.0ms
(cbrt (+ (* a a) (* b b)))
115.0ms
(cbrt (+ (* a a) (* b b)))

simplify47.0ms

Algorithm
egg-herbie
Counts
90 → 90
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
0331646
11480584
25001567

prune399.0ms

Pruning

6 alts after pruning (3 fresh and 3 done)

Merged error: 0.0b

localize24.0ms

Local error

Found 4 expressions with local error:

10.1b
(sqrt (+ (* a a) (* b b)))
10.1b
(sqrt (+ (* a a) (* b b)))
10.8b
(cbrt (+ (* a a) (* b b)))
10.8b
(cbrt (+ (* a a) (* b b)))

rewrite13.0ms

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

series262.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(sqrt (+ (* a a) (* b b)))
41.0ms
(sqrt (+ (* a a) (* b b)))
94.0ms
(cbrt (+ (* a a) (* b b)))
93.0ms
(cbrt (+ (* a a) (* b b)))

simplify53.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 3 (47.0ms)

IterNodesCost
0153468
1493440
21626434
35002432

prune478.0ms

Pruning

7 alts after pruning (3 fresh and 4 done)

Merged error: 0.0b

regimes114.0ms

Accuracy

0% (0.2b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02113
12113

end0.0ms

sample1.5s

Algorithm
intervals
Results
1.1s20274×body80valid