Details

Time bar (total: 5.1s)

sample55.0ms

Algorithm
intervals
Results
34.0ms603×body80valid

simplify54.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 2 (8.0ms)

IterNodesCost
05515
117914
256113
3182413
4500213

prune7.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112

Merged error: 0.2b

Counts
2 → 1

localize16.0ms

Local error

Found 4 expressions with local error:

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

rewrite35.0ms

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

series512.0ms

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

simplify79.0ms

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 2 (68.0ms)

IterNodesCost
0564828
12826724
25001715

prune290.0ms

Filtered
112 candidates to 80 candidates (71.4%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New1075112
Fresh000
Picked101
Done000
Total1085113

Merged error: 0.0b

Counts
113 → 5

localize19.0ms

Local error

Found 4 expressions with local error:

0.2b
(fma (pow (sqrt (+ (* a a) (* b b))) 2.0) (pow (sqrt (+ (* a a) (* b b))) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a))))))
0.3b
(* (* b b) (- 1.0 (* 3.0 a)))
8.2b
(sqrt (+ (* a a) (* b b)))
8.2b
(sqrt (+ (* a a) (* b b)))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt
11×pow1
add-exp-log add-cube-cbrt *-un-lft-identity add-cbrt-cube
prod-diff sqrt-prod
distribute-rgt-in distribute-lft-in
expm1-log1p-u sqrt-div log1p-expm1-u add-log-exp
associate-*r* pow-prod-down prod-exp cbrt-unprod
sub-neg rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 associate-*r/ flip-+ hypot-def
flip3-- associate-*l* *-commutative flip-- fma-udef unswap-sqr
Counts
4 → 79
Calls
4 calls:
1.0ms
(fma (pow (sqrt (+ (* a a) (* b b))) 2.0) (pow (sqrt (+ (* a a) (* b b))) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a))))))
8.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
4.0ms
(sqrt (+ (* a a) (* b b)))
4.0ms
(sqrt (+ (* a a) (* b b)))

series268.0ms

Counts
4 → 12
Calls
4 calls:
143.0ms
(fma (pow (sqrt (+ (* a a) (* b b))) 2.0) (pow (sqrt (+ (* a a) (* b b))) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a))))))
54.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
34.0ms
(sqrt (+ (* a a) (* b b)))
36.0ms
(sqrt (+ (* a a) (* b b)))

simplify51.0ms

Algorithm
egg-herbie
Counts
91 → 91
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
0379738
11669640
25001616

prune292.0ms

Filtered
91 candidates to 70 candidates (76.9%)
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New89291
Fresh314
Picked101
Done000
Total93396

Merged error: 0b

Counts
96 → 3

localize18.0ms

Local error

Found 4 expressions with local error:

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

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
15×pow1 add-exp-log
14×add-cbrt-cube
13×add-sqr-sqrt *-un-lft-identity
11×add-cube-cbrt
distribute-rgt-in fma-def distribute-lft-in associate-*r*
unpow-prod-down prod-diff pow-prod-down prod-exp cbrt-unprod add-log-exp
expm1-log1p-u associate-*r/ log1p-expm1-u
sub-neg associate-+r+ flip3-+ associate-*l* *-commutative flip-+ unswap-sqr sqr-pow
+-commutative pow-to-exp pow-unpow hypot-udef flip3-- pow-pow pow-exp sum-log sqrt-pow2 flip-- distribute-lft-out
Counts
4 → 99
Calls
4 calls:
6.0ms
(+ (pow (hypot a b) (* 2 2.0)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a))))))
5.0ms
(pow (hypot a b) (* 2 2.0))
8.0ms
(* (* a a) (+ 1.0 a))
8.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

series364.0ms

Counts
4 → 12
Calls
4 calls:
137.0ms
(+ (pow (hypot a b) (* 2 2.0)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a))))))
125.0ms
(pow (hypot a b) (* 2 2.0))
52.0ms
(* (* a a) (+ 1.0 a))
50.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

simplify78.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 2 (68.0ms)

IterNodesCost
0558780
12839681
25002672

prune286.0ms

Filtered
111 candidates to 77 candidates (69.4%)
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New1110111
Fresh022
Picked011
Done000
Total1113114

Merged error: 0b

Counts
114 → 3

localize23.0ms

Local error

Found 4 expressions with local error:

8.2b
(sqrt (+ (* a a) (* b b)))
8.2b
(sqrt (+ (* a a) (* b b)))
8.2b
(sqrt (fma (pow (sqrt (+ (* a a) (* b b))) 2.0) (pow (sqrt (+ (* a a) (* b b))) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
8.2b
(sqrt (fma (pow (sqrt (+ (* a a) (* b b))) 2.0) (pow (sqrt (+ (* a a) (* b b))) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))

rewrite16.0ms

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

series613.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(sqrt (+ (* a a) (* b b)))
41.0ms
(sqrt (+ (* a a) (* b b)))
258.0ms
(sqrt (fma (pow (sqrt (+ (* a a) (* b b))) 2.0) (pow (sqrt (+ (* a a) (* b b))) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
278.0ms
(sqrt (fma (pow (sqrt (+ (* a a) (* b b))) 2.0) (pow (sqrt (+ (* a a) (* b b))) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))

simplify73.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 3 (62.0ms)

IterNodesCost
0235974
1742914
22351906
35003900

prune333.0ms

Filtered
78 candidates to 66 candidates (84.6%)
Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New78078
Fresh011
Picked011
Done011
Total78381

Merged error: 0b

Counts
81 → 3

regimes63.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
02914
12914

end0.0ms

sample1.5s

Algorithm
intervals
Results
1.2s20224×body80valid