Details

Time bar (total: 5.8s)

sample57.0ms

Algorithm
intervals
Results
38.0ms670×body80valid

simplify53.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 2 (7.0ms)

IterNodesCost
05515
117914
256113
3182413
4500213

prune6.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
(pow (+ (* a a) (* b b)) 2.0)
0.5b
(* (* b b) (- 1.0 (* 3.0 a)))

rewrite31.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))))))
8.0ms
(* (* a a) (+ 1.0 a))
4.0ms
(pow (+ (* a a) (* b b)) 2.0)
8.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

series315.0ms

Counts
4 → 12
Calls
4 calls:
107.0ms
(+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a))))))
51.0ms
(* (* a a) (+ 1.0 a))
103.0ms
(pow (+ (* a a) (* b b)) 2.0)
53.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

simplify73.0ms

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 2 (63.0ms)

IterNodesCost
0564828
12826724
25001715

prune332.0ms

Filtered
112 candidates to 80 candidates (71.4%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New1066112
Fresh000
Picked101
Done000
Total1076113

Merged error: 0.0b

Counts
113 → 6

localize19.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (* b b) (- 1.0 (* 3.0 a)))
0.5b
(* (* b b) (- 1.0 (* 3.0 a)))
7.4b
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
7.4b
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))

rewrite30.0ms

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

series449.0ms

Counts
4 → 12
Calls
4 calls:
49.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
54.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
173.0ms
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
174.0ms
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))

simplify57.0ms

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
03881306
116741186
250021176

prune390.0ms

Filtered
112 candidates to 72 candidates (64.3%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New1084112
Fresh325
Picked101
Done000
Total1126118

Merged error: 0.0b

Counts
118 → 6

localize23.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (* b b) (- 1.0 (* 3.0 a)))
7.4b
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
7.4b
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
7.4b
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))

rewrite30.0ms

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

series590.0ms

Counts
4 → 12
Calls
4 calls:
54.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
178.0ms
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
178.0ms
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
179.0ms
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))

simplify54.0ms

Algorithm
egg-herbie
Counts
96 → 96
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
03881438
116741343
250021336

prune415.0ms

Filtered
96 candidates to 68 candidates (70.8%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New95196
Fresh145
Picked011
Done000
Total966102

Merged error: 0.0b

Counts
102 → 6

localize26.0ms

Local error

Found 4 expressions with local error:

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

rewrite31.0ms

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

series707.0ms

Counts
4 → 12
Calls
4 calls:
177.0ms
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
178.0ms
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
175.0ms
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
177.0ms
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))

simplify118.0ms

Algorithm
egg-herbie
Counts
80 → 80
Iterations

Useful iterations: 3 (104.0ms)

IterNodesCost
01951572
17461500
238811500
350011496

prune414.0ms

Filtered
80 candidates to 68 candidates (85.0%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New78280
Fresh134
Picked101
Done011
Total80686

Merged error: 0.0b

Counts
86 → 6

regimes164.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
03250
13250

end0.0ms

sample1.4s

Algorithm
intervals
Results
1.1s20277×body80valid