Details

Time bar (total: 5.7s)

sample69.0ms

Algorithm
intervals
Results
44.0ms241×body10240exit
6.0ms201×body80valid
3.0ms28×body320valid
1.0ms10×body640valid
1.0ms20×body160valid

simplify52.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.3b

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

rewrite56.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))
9.0ms
(/ (/ x (+ wj 1)) (exp wj))
30.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series148.0ms

Counts
4 → 12
Calls
4 calls:
22.0ms
(/ x (+ wj 1))
26.0ms
(/ wj (+ wj 1))
39.0ms
(/ (/ x (+ wj 1)) (exp wj))
60.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

simplify80.0ms

Algorithm
egg-herbie
Counts
188 → 188
Iterations

Useful iterations: 2 (64.0ms)

IterNodesCost
07211524
133031471
250011469

prune668.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0.3b

localize7.0ms

Local error

Found 2 expressions with local error:

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

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-cbrt-cube add-log-exp
add-sqr-sqrt add-cube-cbrt *-un-lft-identity associate-*l* pow-prod-down prod-exp cbrt-unprod
diff-log
sub-neg flip3-- associate-*r* associate--l+ sum-log *-commutative flip--
Counts
2 → 32
Calls
2 calls:
7.0ms
(- (+ x (pow wj 2)) (* 2 (* wj x)))
8.0ms
(* 2 (* wj x))

series49.0ms

Counts
2 → 6
Calls
2 calls:
30.0ms
(- (+ x (pow wj 2)) (* 2 (* wj x)))
19.0ms
(* 2 (* wj x))

simplify116.0ms

Algorithm
egg-herbie
Counts
38 → 38
Iterations

Useful iterations: 2 (24.0ms)

IterNodesCost
0162196
1645179
23837177
35001177

prune78.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 0.3b

localize11.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (cbrt (- (+ x (pow wj 2)) (* 2 (* wj x)))) (cbrt (- (+ x (pow wj 2)) (* 2 (* wj x)))))
0.6b
(cbrt (- (+ x (pow wj 2)) (* 2 (* wj x))))
0.6b
(cbrt (- (+ x (pow wj 2)) (* 2 (* wj x))))
0.6b
(cbrt (- (+ x (pow wj 2)) (* 2 (* wj x))))

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
25×cbrt-prod
23×add-sqr-sqrt
18×cbrt-div
15×add-cube-cbrt *-un-lft-identity
11×pow1
flip3-- pow1/3 flip--
add-exp-log swap-sqr associate-*r* associate-*l*
frac-times add-cbrt-cube add-log-exp unswap-sqr
associate-*r/ pow-prod-down associate-*l/ pow-sqr pow-prod-up
pow2 pow-plus prod-exp *-commutative cbrt-unprod
Counts
4 → 87
Calls
4 calls:
17.0ms
(* (cbrt (- (+ x (pow wj 2)) (* 2 (* wj x)))) (cbrt (- (+ x (pow wj 2)) (* 2 (* wj x)))))
6.0ms
(cbrt (- (+ x (pow wj 2)) (* 2 (* wj x))))
6.0ms
(cbrt (- (+ x (pow wj 2)) (* 2 (* wj x))))
7.0ms
(cbrt (- (+ x (pow wj 2)) (* 2 (* wj x))))

series1.1s

Counts
4 → 12
Calls
4 calls:
295.0ms
(* (cbrt (- (+ x (pow wj 2)) (* 2 (* wj x)))) (cbrt (- (+ x (pow wj 2)) (* 2 (* wj x)))))
263.0ms
(cbrt (- (+ x (pow wj 2)) (* 2 (* wj x))))
263.0ms
(cbrt (- (+ x (pow wj 2)) (* 2 (* wj x))))
271.0ms
(cbrt (- (+ x (pow wj 2)) (* 2 (* wj x))))

simplify53.0ms

Algorithm
egg-herbie
Counts
99 → 99
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
03151593
112011500
250011416

prune289.0ms

Pruning

11 alts after pruning (9 fresh and 2 done)

Merged error: 0.3b

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite46.0ms

Algorithm
rewrite-expression-head
Rules
31×*-un-lft-identity
26×add-sqr-sqrt
22×times-frac
21×add-cube-cbrt
14×add-log-exp
add-cbrt-cube
add-exp-log associate-/r*
associate-/l*
pow1 flip3-+ flip-+ distribute-lft-out
diff-log sum-log
cbrt-undiv associate-+r- sub-neg associate-+r+ frac-2neg div-exp clear-num associate-/r/ frac-sub div-inv associate-/l/ difference-of-squares
+-commutative flip3-- div-sub associate--l+ flip-- distribute-lft-out--
Counts
4 → 97
Calls
4 calls:
5.0ms
(/ wj (+ wj 1))
5.0ms
(+ (* wj wj) (- 1 (* wj 1)))
11.0ms
(/ (+ (* wj wj) (- 1 (* wj 1))) (exp wj))
23.0ms
(- (+ (* (/ x (+ (pow wj 3) 1)) (/ (+ (* wj wj) (- 1 (* wj 1))) (exp wj))) wj) (/ wj (+ wj 1)))

series225.0ms

Counts
4 → 12
Calls
4 calls:
21.0ms
(/ wj (+ wj 1))
14.0ms
(+ (* wj wj) (- 1 (* wj 1)))
22.0ms
(/ (+ (* wj wj) (- 1 (* wj 1))) (exp wj))
168.0ms
(- (+ (* (/ x (+ (pow wj 3) 1)) (/ (+ (* wj wj) (- 1 (* wj 1))) (exp wj))) wj) (/ wj (+ wj 1)))

simplify66.0ms

Algorithm
egg-herbie
Counts
109 → 109
Iterations

Useful iterations: 2 (55.0ms)

IterNodesCost
05231121
124751038
250021030

prune339.0ms

Pruning

11 alts after pruning (8 fresh and 3 done)

Merged error: 0.3b

regimes104.0ms

Accuracy

47.2% (0.9b remaining)

Error of 1.2b against oracle of 0.3b and baseline of 2.0b

bsearch44.0ms

Steps
ItersRangePoint
10
5.2561196964825414e-17
2.348668524657356e-07
2.3299975505553626e-07

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03131
13131

end0.0ms

sample2.1s

Algorithm
intervals
Results
1.4s7666×body10240exit
191.0ms6312×body80valid
79.0ms820×body320valid
59.0ms412×body640valid
35.0ms536×body160valid