Details

Time bar (total: 5.8s)

sample62.0ms

Algorithm
intervals
Results
42.0ms624×body80valid

simplify79.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 2 (7.0ms)

IterNodesCost
05314
117313
253212
3168112
4427812
5500112

prune6.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.2b

localize15.0ms

Local error

Found 4 expressions with local error:

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

rewrite43.0ms

Algorithm
rewrite-expression-head
Rules
36×add-sqr-sqrt *-un-lft-identity prod-diff
32×add-cube-cbrt
24×distribute-rgt-in distribute-lft-in
22×associate-+l+
15×pow1 add-exp-log
14×add-cbrt-cube
12×associate-*r/
associate-*r*
pow-prod-down prod-exp cbrt-unprod add-log-exp
expm1-log1p-u sub-neg flip3-+ frac-add flip-+ log1p-expm1-u
unpow-prod-down pow-unpow flip3-- flip--
associate-+r+ associate-*l* *-commutative unswap-sqr
+-commutative pow-to-exp pow-pow fma-def pow-exp sum-log distribute-lft-out distribute-lft-out-- difference-of-squares sqr-pow
Counts
4 → 134
Calls
4 calls:
12.0ms
(+ (* (* a a) (- 1.0 a)) (* (* b b) (+ 3.0 a)))
9.0ms
(* (* a a) (- 1.0 a))
4.0ms
(pow (+ (* a a) (* b b)) 2.0)
11.0ms
(* (* b b) (+ 3.0 a))

series251.0ms

Counts
4 → 12
Calls
4 calls:
57.0ms
(+ (* (* a a) (- 1.0 a)) (* (* b b) (+ 3.0 a)))
56.0ms
(* (* a a) (- 1.0 a))
105.0ms
(pow (+ (* a a) (* b b)) 2.0)
33.0ms
(* (* b b) (+ 3.0 a))

simplify112.0ms

Algorithm
egg-herbie
Counts
146 → 146
Iterations

Useful iterations: 2 (99.0ms)

IterNodesCost
07301165
14038906
25001903

prune443.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0.1b

localize18.0ms

Local error

Found 4 expressions with local error:

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

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
42×add-sqr-sqrt
30×*-un-lft-identity
26×add-exp-log add-cube-cbrt
18×unpow-prod-down prod-diff
16×associate-*r* add-cbrt-cube
15×prod-exp
14×pow1
13×distribute-rgt-in distribute-lft-in
11×unswap-sqr
10×sqr-pow
associate-*l*
swap-sqr pow-prod-down cbrt-unprod
pow-to-exp pow-exp add-log-exp
expm1-log1p-u associate-*r/ log1p-expm1-u
*-commutative
sub-neg associate-+r+ flip3-+ flip-+
+-commutative pow2 flip3-- fma-def sum-log pow-sqr pow-prod-up flip-- distribute-lft-out distribute-lft-out-- difference-of-squares
Counts
4 → 143
Calls
4 calls:
7.0ms
(+ (* (pow (fma a a (* b b)) (/ 2.0 2)) (pow (fma a a (* b b)) (/ 2.0 2))) (* 4.0 (+ (* (* a a) (- 1.0 a)) (* (* b b) (+ 3.0 a)))))
13.0ms
(* (* a a) (- 1.0 a))
7.0ms
(* (pow (fma a a (* b b)) (/ 2.0 2)) (pow (fma a a (* b b)) (/ 2.0 2)))
8.0ms
(* (* b b) (+ 3.0 a))

series367.0ms

Counts
4 → 12
Calls
4 calls:
116.0ms
(+ (* (pow (fma a a (* b b)) (/ 2.0 2)) (pow (fma a a (* b b)) (/ 2.0 2))) (* 4.0 (+ (* (* a a) (- 1.0 a)) (* (* b b) (+ 3.0 a)))))
51.0ms
(* (* a a) (- 1.0 a))
166.0ms
(* (pow (fma a a (* b b)) (/ 2.0 2)) (pow (fma a a (* b b)) (/ 2.0 2)))
34.0ms
(* (* b b) (+ 3.0 a))

simplify120.0ms

Algorithm
egg-herbie
Counts
155 → 155
Iterations

Useful iterations: 2 (93.0ms)

IterNodesCost
07231510
138861232
250021210

prune461.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 0.0b

localize33.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (* (pow (fma a a (* b b)) (/ 2.0 2)) (pow (hypot a b) (* 2 (/ 2.0 4)))) (pow (sqrt (fma a a (* b b))) (/ 2.0 2)))
0.2b
(* (pow (fma a a (* b b)) (/ 2.0 2)) (pow (hypot a b) (* 2 (/ 2.0 4))))
1.2b
(* (* b b) (+ 3.0 a))
10.9b
(sqrt (fma a a (* b b)))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
80×add-exp-log
69×prod-exp
34×pow-to-exp pow-exp
27×add-sqr-sqrt
21×associate-*r*
18×unpow-prod-down
16×add-cbrt-cube
15×*-un-lft-identity
13×add-cube-cbrt
10×pow1 unswap-sqr
associate-*l* sqr-pow
cbrt-unprod
sqrt-prod
expm1-log1p-u log1p-expm1-u add-log-exp
pow-prod-down *-commutative
associate-*r/
distribute-rgt-in rem-sqrt-square distribute-lft-in sqrt-pow1 flip3-+ pow1/2 flip-+ fma-udef hypot-def distribute-lft-out
Counts
4 → 138
Calls
4 calls:
10.0ms
(* (* (pow (fma a a (* b b)) (/ 2.0 2)) (pow (hypot a b) (* 2 (/ 2.0 4)))) (pow (sqrt (fma a a (* b b))) (/ 2.0 2)))
7.0ms
(* (pow (fma a a (* b b)) (/ 2.0 2)) (pow (hypot a b) (* 2 (/ 2.0 4))))
8.0ms
(* (* b b) (+ 3.0 a))
2.0ms
(sqrt (fma a a (* b b)))

series649.0ms

Counts
4 → 12
Calls
4 calls:
252.0ms
(* (* (pow (fma a a (* b b)) (/ 2.0 2)) (pow (hypot a b) (* 2 (/ 2.0 4)))) (pow (sqrt (fma a a (* b b))) (/ 2.0 2)))
313.0ms
(* (pow (fma a a (* b b)) (/ 2.0 2)) (pow (hypot a b) (* 2 (/ 2.0 4))))
32.0ms
(* (* b b) (+ 3.0 a))
50.0ms
(sqrt (fma a a (* b b)))

simplify80.0ms

Algorithm
egg-herbie
Counts
150 → 150
Iterations

Useful iterations: 2 (63.0ms)

IterNodesCost
07051747
128281583
250011445

prune555.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0b

localize23.0ms

Local error

Found 4 expressions with local error:

1.2b
(* (* b b) (+ 3.0 a))
11.5b
(cbrt (pow (fma a a (* b b)) (/ 2.0 2)))
11.5b
(cbrt (pow (fma a a (* b b)) (/ 2.0 2)))
11.5b
(cbrt (pow (fma a a (* b b)) (/ 2.0 2)))

rewrite20.0ms

Algorithm
rewrite-expression-head
Rules
21×cbrt-prod
13×*-un-lft-identity
12×add-sqr-sqrt
11×add-cube-cbrt
pow1 add-exp-log unpow-prod-down add-cbrt-cube
expm1-log1p-u associate-*r* log1p-expm1-u add-log-exp
pow1/3 pow-prod-down prod-exp cbrt-unprod sqr-pow
associate-*r/
distribute-rgt-in distribute-lft-in flip3-+ associate-*l* *-commutative flip-+ distribute-lft-out unswap-sqr
Counts
4 → 77
Calls
4 calls:
8.0ms
(* (* b b) (+ 3.0 a))
6.0ms
(cbrt (pow (fma a a (* b b)) (/ 2.0 2)))
2.0ms
(cbrt (pow (fma a a (* b b)) (/ 2.0 2)))
2.0ms
(cbrt (pow (fma a a (* b b)) (/ 2.0 2)))

series510.0ms

Counts
4 → 12
Calls
4 calls:
32.0ms
(* (* b b) (+ 3.0 a))
162.0ms
(cbrt (pow (fma a a (* b b)) (/ 2.0 2)))
163.0ms
(cbrt (pow (fma a a (* b b)) (/ 2.0 2)))
152.0ms
(cbrt (pow (fma a a (* b b)) (/ 2.0 2)))

simplify39.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0272636
11132582
25002576

prune379.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0b

regimes79.0ms

Accuracy

0% (0.7b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03228
13228

end0.0ms

sample1.4s

Algorithm
intervals
Results
1.1s20551×body80valid