Details

Time bar (total: 6.4s)

sample75.0ms

Algorithm
intervals
Results
36.0ms140×body10240exit
12.0ms210×body80valid
8.0ms132×body80overflowed
3.0ms21×body320valid
2.0ms10×body640valid
2.0ms17×body160valid

simplify46.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (7.0ms)

IterNodesCost
0209
1489
21079
32248
415148
550018

prune6.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 11.3b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ x (+ wj 1))
0.0b
(/ wj (+ wj 1))
0.0b
(/ (/ x (+ wj 1)) (exp wj))
5.0b
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

rewrite370.0ms

Algorithm
rewrite-expression-head
Rules
127×times-frac
118×*-un-lft-identity
78×add-sqr-sqrt
73×add-cube-cbrt
24×associate-/l*
21×distribute-lft-out
13×add-cbrt-cube
12×associate-/r/
11×add-exp-log associate-/r*
add-log-exp
flip3-+ flip-+ div-inv
cbrt-undiv div-exp
pow1
frac-2neg clear-num
diff-log frac-sub distribute-lft-out-- difference-of-squares
sub-neg flip3-- associate--l+ sum-log flip-- associate-/l/
Counts
4 → 176
Calls
4 calls:
5.0ms
(/ x (+ wj 1))
5.0ms
(/ wj (+ wj 1))
12.0ms
(/ (/ x (+ wj 1)) (exp wj))
339.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series143.0ms

Counts
4 → 12
Calls
4 calls:
22.0ms
(/ x (+ wj 1))
22.0ms
(/ wj (+ wj 1))
43.0ms
(/ (/ x (+ wj 1)) (exp wj))
55.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

simplify77.0ms

Algorithm
egg-herbie
Counts
188 → 188
Iterations

Useful iterations: 2 (61.0ms)

IterNodesCost
07211524
133031471
250011469

prune437.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0.2b

localize7.0ms

Local error

Found 2 expressions with local error:

0.0b
(+ x (pow wj 2))
0.0b
(* 2 (* wj x))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-cbrt-cube
*-un-lft-identity
add-log-exp
add-sqr-sqrt add-cube-cbrt associate-*l* pow-prod-down prod-exp cbrt-unprod
+-commutative flip3-+ associate-*r* sum-log *-commutative flip-+ distribute-lft-out
Counts
2 → 30
Calls
2 calls:
4.0ms
(+ x (pow wj 2))
6.0ms
(* 2 (* wj x))

series49.0ms

Counts
2 → 6
Calls
2 calls:
29.0ms
(+ x (pow wj 2))
20.0ms
(* 2 (* wj x))

simplify68.0ms

Algorithm
egg-herbie
Counts
36 → 36
Iterations

Useful iterations: 2 (17.0ms)

IterNodesCost
0149122
1550108
22362107
35001107

prune77.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 0.2b

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (/ wj (- (* wj wj) 1)) (- wj 1))
0.0b
(/ x (+ wj 1))
0.0b
(/ (/ x (+ wj 1)) (exp wj))
5.0b
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (* (/ wj (- (* wj wj) 1)) (- wj 1)))

rewrite386.0ms

Algorithm
rewrite-expression-head
Rules
133×times-frac
113×*-un-lft-identity
87×add-sqr-sqrt
75×add-cube-cbrt
24×associate-*l*
21×associate-/l*
16×add-cbrt-cube distribute-lft-out
14×add-exp-log
12×associate-/r/
10×flip3-+ frac-sub flip-+
add-log-exp
flip3-- flip-- difference-of-squares
associate-*r* associate-/r* div-inv
pow1 frac-times associate-*r/
cbrt-undiv sub-neg div-exp
distribute-rgt-in distribute-lft-in difference-of-sqr-1 associate--r+
associate-*l/
frac-2neg diff-log prod-exp clear-num cbrt-unprod unswap-sqr
pow-prod-down associate--l+ sum-log *-commutative associate-/l/ distribute-lft-out--
Counts
4 → 206
Calls
4 calls:
27.0ms
(* (/ wj (- (* wj wj) 1)) (- wj 1))
5.0ms
(/ x (+ wj 1))
13.0ms
(/ (/ x (+ wj 1)) (exp wj))
331.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (* (/ wj (- (* wj wj) 1)) (- wj 1)))

series192.0ms

Counts
4 → 12
Calls
4 calls:
38.0ms
(* (/ wj (- (* wj wj) 1)) (- wj 1))
23.0ms
(/ x (+ wj 1))
42.0ms
(/ (/ x (+ wj 1)) (exp wj))
89.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (* (/ wj (- (* wj wj) 1)) (- wj 1)))

simplify50.0ms

Algorithm
egg-herbie
Counts
218 → 218
Iterations

Useful iterations: 1 (26.0ms)

IterNodesCost
010412170
150012090

prune752.0ms

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 0.1b

localize20.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (/ wj (- (* wj wj) 1)) (- wj 1))
0.0b
(* (/ x (+ (pow wj 3) 1)) (+ (* wj wj) (- (* 1 1) (* wj 1))))
0.0b
(/ (* (/ x (+ (pow wj 3) 1)) (+ (* wj wj) (- (* 1 1) (* wj 1)))) (exp wj))
5.0b
(- (+ (/ (* (/ x (+ (pow wj 3) 1)) (+ (* wj wj) (- (* 1 1) (* wj 1)))) (exp wj)) wj) (* (/ wj (- (* wj wj) 1)) (- wj 1)))

rewrite339.0ms

Algorithm
rewrite-expression-head
Rules
43×add-sqr-sqrt
42×associate-*l*
38×*-un-lft-identity
35×times-frac
26×add-cube-cbrt
23×add-cbrt-cube
20×add-exp-log
10×frac-times flip3-+ associate-*r/ associate-*r* frac-sub flip-+
add-log-exp
pow1 flip3-- flip-- difference-of-squares
cbrt-undiv div-exp prod-exp cbrt-unprod
distribute-rgt-in sub-neg distribute-lft-in associate-*l/ associate-/l/
difference-of-sqr-1 associate-/r/ associate--r+ unswap-sqr
associate-/r* div-inv distribute-lft-out
diff-log pow-prod-down *-commutative
frac-2neg associate--l+ clear-num sum-log associate-/l* distribute-lft-out--
Counts
4 → 154
Calls
4 calls:
27.0ms
(* (/ wj (- (* wj wj) 1)) (- wj 1))
65.0ms
(* (/ x (+ (pow wj 3) 1)) (+ (* wj wj) (- (* 1 1) (* wj 1))))
21.0ms
(/ (* (/ x (+ (pow wj 3) 1)) (+ (* wj wj) (- (* 1 1) (* wj 1)))) (exp wj))
220.0ms
(- (+ (/ (* (/ x (+ (pow wj 3) 1)) (+ (* wj wj) (- (* 1 1) (* wj 1)))) (exp wj)) wj) (* (/ wj (- (* wj wj) 1)) (- wj 1)))

series405.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(* (/ wj (- (* wj wj) 1)) (- wj 1))
69.0ms
(* (/ x (+ (pow wj 3) 1)) (+ (* wj wj) (- (* 1 1) (* wj 1))))
90.0ms
(/ (* (/ x (+ (pow wj 3) 1)) (+ (* wj wj) (- (* 1 1) (* wj 1)))) (exp wj))
207.0ms
(- (+ (/ (* (/ x (+ (pow wj 3) 1)) (+ (* wj wj) (- (* 1 1) (* wj 1)))) (exp wj)) wj) (* (/ wj (- (* wj wj) 1)) (- wj 1)))

simplify51.0ms

Algorithm
egg-herbie
Counts
166 → 166
Iterations

Useful iterations: 1 (28.0ms)

IterNodesCost
011242599
150012392

prune573.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 0.1b

regimes90.0ms

Accuracy

63.7% (0.7b remaining)

Error of 1.0b against oracle of 0.3b and baseline of 2.2b

bsearch49.0ms

Steps
ItersRangePoint
9
2.2219667061302788e-13
6.752722029277837e-06
6.381542263961784e-09

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03116
13116

end0.0ms

sample2.1s

Algorithm
intervals
Results
975.0ms3680×body10240exit
354.0ms6317×body80valid
213.0ms3734×body80overflowed
112.0ms769×body320valid
88.0ms422×body640valid
56.0ms557×body160valid