Details

Time bar (total: 7.3s)

sample74.0ms

Algorithm
intervals
Results
49.0ms252×body10240exit
7.0ms206×body80valid
2.0ms21×body320valid
2.0ms14×body640valid
1.0ms16×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.7b

localize14.0ms

Local error

Found 4 expressions with local error:

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

rewrite379.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
(/ wj (+ wj 1))
5.0ms
(/ x (+ wj 1))
12.0ms
(/ (/ x (+ wj 1)) (exp wj))
348.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series136.0ms

Counts
4 → 12
Calls
4 calls:
20.0ms
(/ wj (+ wj 1))
22.0ms
(/ x (+ wj 1))
41.0ms
(/ (/ x (+ wj 1)) (exp wj))
53.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

simplify76.0ms

Algorithm
egg-herbie
Counts
188 → 188
Iterations

Useful iterations: 2 (60.0ms)

IterNodesCost
07211524
133031471
250011469

prune419.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.2b

localize8.0ms

Local error

Found 3 expressions with local error:

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

rewrite52.0ms

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

series79.0ms

Counts
3 → 9
Calls
3 calls:
29.0ms
(- (+ x (pow wj 2)) (* 2 (* wj x)))
28.0ms
(+ x (pow wj 2))
21.0ms
(* 2 (* wj x))

simplify127.0ms

Algorithm
egg-herbie
Counts
53 → 53
Iterations

Useful iterations: 2 (25.0ms)

IterNodesCost
0202247
1793231
24232228
35001228

prune95.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0.2b

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (/ (+ (* x x) (- (pow wj 4))) (- x (pow wj 2))) (* 2 (* wj x)))
0.0b
(- x (pow wj 2))
0.0b
(* 2 (* wj x))
21.4b
(/ (+ (* x x) (- (pow wj 4))) (- x (pow wj 2)))

rewrite188.0ms

Algorithm
rewrite-expression-head
Rules
48×add-sqr-sqrt
28×*-un-lft-identity
24×times-frac
20×difference-of-squares
18×add-cube-cbrt
11×add-exp-log add-cbrt-cube
pow1
associate-/r* add-log-exp
div-sub
unpow-prod-down distribute-lft-out-- unpow2 sqr-pow
associate--l- flip3-- associate-*l* pow-prod-down prod-exp flip-- cbrt-unprod associate-/l*
neg-sub0 associate-+r- sub-neg diff-log unsub-neg associate-/r/ associate-/l/
cbrt-undiv frac-2neg flip3-+ div-exp associate-*r* clear-num *-commutative flip-+ div-inv
Counts
4 → 104
Calls
4 calls:
137.0ms
(- (/ (+ (* x x) (- (pow wj 4))) (- x (pow wj 2))) (* 2 (* wj x)))
4.0ms
(- x (pow wj 2))
6.0ms
(* 2 (* wj x))
37.0ms
(/ (+ (* x x) (- (pow wj 4))) (- x (pow wj 2)))

series190.0ms

Counts
4 → 12
Calls
4 calls:
52.0ms
(- (/ (+ (* x x) (- (pow wj 4))) (- x (pow wj 2))) (* 2 (* wj x)))
35.0ms
(- x (pow wj 2))
18.0ms
(* 2 (* wj x))
84.0ms
(/ (+ (* x x) (- (pow wj 4))) (- x (pow wj 2)))

simplify54.0ms

Algorithm
egg-herbie
Counts
116 → 116
Iterations

Useful iterations: 2 (43.0ms)

IterNodesCost
04101058
11743976
25001951

prune260.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 0.2b

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite416.0ms

Algorithm
rewrite-expression-head
Rules
555×times-frac
403×*-un-lft-identity
289×add-sqr-sqrt
253×add-cube-cbrt
76×swap-sqr
66×distribute-lft-out
58×associate-*r* associate-*l*
50×add-cbrt-cube
43×associate-*l/
40×associate-/r/
36×add-exp-log
33×flip3-- flip--
32×frac-sub
31×flip3-+ flip-+
23×cbrt-undiv div-exp
22×div-inv
21×frac-times associate-/l*
19×associate-/l/
11×pow1 associate-*r/
10×prod-exp cbrt-unprod
unswap-sqr
add-log-exp
associate-/r*
frac-2neg associate--l+ clear-num
pow2 distribute-rgt-in sub-neg distribute-lft-in pow-plus diff-log div-sub pow-prod-down pow-sqr *-commutative pow-prod-up
Counts
4 → 403
Calls
4 calls:
12.0ms
(/ (/ x (+ wj 1)) (exp wj))
94.0ms
(* (/ (/ x (+ wj 1)) (exp wj)) (/ (/ x (+ wj 1)) (exp wj)))
88.0ms
(- (* (- (* (/ (/ x (+ wj 1)) (exp wj)) (/ (/ x (+ wj 1)) (exp wj))) (* wj wj)) (+ wj 1)) (* (- (/ (/ x (+ wj 1)) (exp wj)) wj) wj))
186.0ms
(/ (- (* (- (* (/ (/ x (+ wj 1)) (exp wj)) (/ (/ x (+ wj 1)) (exp wj))) (* wj wj)) (+ wj 1)) (* (- (/ (/ x (+ wj 1)) (exp wj)) wj) wj)) (* (- (/ (/ x (+ wj 1)) (exp wj)) wj) (+ wj 1)))

series651.0ms

Counts
4 → 12
Calls
4 calls:
38.0ms
(/ (/ x (+ wj 1)) (exp wj))
54.0ms
(* (/ (/ x (+ wj 1)) (exp wj)) (/ (/ x (+ wj 1)) (exp wj)))
207.0ms
(- (* (- (* (/ (/ x (+ wj 1)) (exp wj)) (/ (/ x (+ wj 1)) (exp wj))) (* wj wj)) (+ wj 1)) (* (- (/ (/ x (+ wj 1)) (exp wj)) wj) wj))
351.0ms
(/ (- (* (- (* (/ (/ x (+ wj 1)) (exp wj)) (/ (/ x (+ wj 1)) (exp wj))) (* wj wj)) (+ wj 1)) (* (- (/ (/ x (+ wj 1)) (exp wj)) wj) wj)) (* (- (/ (/ x (+ wj 1)) (exp wj)) wj) (+ wj 1)))

simplify116.0ms

Algorithm
egg-herbie
Counts
415 → 415
Iterations

Useful iterations: 1 (46.0ms)

IterNodesCost
025028267
150017858

prune1.5s

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 0.0b

regimes63.0ms

Accuracy

52.8% (0.8b remaining)

Error of 1.2b against oracle of 0.4b and baseline of 2.1b

bsearch42.0ms

Steps
ItersRangePoint
8
1.2456874397123594e-21
5.409776585196184e-17
5.325867851980969e-17

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03845
14245
24245

end0.0ms

sample2.3s

Algorithm
intervals
Results
1.6s7661×body10240exit
206.0ms6278×body80valid
83.0ms807×body320valid
69.0ms440×body640valid
36.0ms540×body160valid