Details

Time bar (total: 5.0s)

sample62.0ms

Algorithm
intervals
Results
38.0ms217×body10240exit
6.0ms205×body80valid
3.0ms27×body320valid
2.0ms11×body640valid
1.0ms20×body160valid

simplify49.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (8.0ms)

IterNodesCost
0209
1489
21079
32248
415148
550018

prune6.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 13.4b

localize13.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.4b
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

rewrite381.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))
349.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series147.0ms

Counts
4 → 12
Calls
4 calls:
24.0ms
(/ x (+ wj 1))
22.0ms
(/ wj (+ wj 1))
44.0ms
(/ (/ x (+ wj 1)) (exp wj))
57.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

simplify78.0ms

Algorithm
egg-herbie
Counts
188 → 188
Iterations

Useful iterations: 2 (62.0ms)

IterNodesCost
07181538
133001483
250021481

prune449.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.2b

localize7.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ x (pow wj 2))
0.0b
(- (+ x (pow wj 2)) (* 2 (* wj x)))
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:
5.0ms
(+ x (pow wj 2))
40.0ms
(- (+ x (pow wj 2)) (* 2 (* wj x)))
6.0ms
(* 2 (* wj x))

series83.0ms

Counts
3 → 9
Calls
3 calls:
30.0ms
(+ x (pow wj 2))
31.0ms
(- (+ x (pow wj 2)) (* 2 (* wj x)))
23.0ms
(* 2 (* wj x))

simplify129.0ms

Algorithm
egg-herbie
Counts
53 → 53
Iterations

Useful iterations: 2 (26.0ms)

IterNodesCost
0202247
1793231
24232228
35001228

prune103.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0.2b

localize8.0ms

Local error

Found 4 expressions with local error:

0.0b
(* wj (exp wj))
0.0b
(+ (exp wj) (* wj (exp wj)))
1.0b
(/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj))))
5.4b
(- wj (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj)))))

rewrite52.0ms

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt *-un-lft-identity
16×add-cube-cbrt times-frac
add-cbrt-cube add-log-exp
add-exp-log
pow1
distribute-rgt-out distribute-rgt1-in associate-/r*
associate-*r* associate-*l* associate-/l*
flip3-- flip3-+ div-sub associate-/r/ flip-- flip-+ associate-/l/ difference-of-squares
cbrt-undiv +-commutative sub-neg frac-2neg diff-log div-exp pow-prod-down prod-exp clear-num sum-log *-commutative cbrt-unprod div-inv distribute-lft-out-- associate--r- unswap-sqr
Counts
4 → 87
Calls
4 calls:
5.0ms
(* wj (exp wj))
3.0ms
(+ (exp wj) (* wj (exp wj)))
16.0ms
(/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj))))
26.0ms
(- wj (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj)))))

series175.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(* wj (exp wj))
37.0ms
(+ (exp wj) (* wj (exp wj)))
41.0ms
(/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj))))
60.0ms
(- wj (/ (- (* wj (exp wj)) x) (+ (exp wj) (* wj (exp wj)))))

simplify49.0ms

Algorithm
egg-herbie
Counts
99 → 99
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0394942
11478877
25001855

prune247.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 0.2b

localize16.0ms

Local error

Found 3 expressions with local error:

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

rewrite181.0ms

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

series173.0ms

Counts
3 → 9
Calls
3 calls:
62.0ms
(- (/ (+ (* x x) (- (pow wj 4))) (- x (pow wj 2))) (* 2 (* wj x)))
21.0ms
(* 2 (* wj x))
90.0ms
(/ (+ (* x x) (- (pow wj 4))) (- x (pow wj 2)))

simplify55.0ms

Algorithm
egg-herbie
Counts
96 → 96
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0397974
11702901
25002876

prune230.0ms

Pruning

6 alts after pruning (3 fresh and 3 done)

Merged error: 0.2b

regimes105.0ms

Accuracy

54% (0.8b remaining)

Error of 1.1b against oracle of 0.3b and baseline of 2.1b

bsearch36.0ms

Steps
ItersRangePoint
7
6.455311877312871e-06
0.0001516457190089863
2.1610528876044702e-05

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03131
13131

end0.0ms

sample2.1s

Algorithm
intervals
Results
1.4s7580×body10240exit
187.0ms6253×body80valid
80.0ms790×body320valid
70.0ms488×body640valid
37.0ms554×body160valid