Details

Time bar (total: 5.9s)

sample69.0ms

Algorithm
intervals
Results
42.0ms240×body10240exit
6.0ms204×body80valid
3.0ms29×body320valid
2.0ms11×body640valid
1.0ms15×body160valid

simplify47.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (7.0ms)

IterNodesCost
0219
1529
21139
32408
416258
550018

prune5.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 12.4b

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

rewrite629.0ms

Algorithm
rewrite-expression-head
Rules
231×*-un-lft-identity
175×times-frac
129×add-sqr-sqrt
124×add-cube-cbrt
72×prod-diff
52×distribute-lft-out
24×associate-/l*
20×associate-/r/
13×add-cbrt-cube
11×add-exp-log flip3-+ associate-/r* flip-+ div-inv
add-log-exp
cbrt-undiv div-exp
pow1 expm1-log1p-u fma-neg log1p-expm1-u
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 → 260
Calls
4 calls:
10.0ms
(/ x (+ wj 1))
10.0ms
(/ wj (+ wj 1))
23.0ms
(/ (/ x (+ wj 1)) (exp wj))
572.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

series130.0ms

Counts
4 → 12
Calls
4 calls:
23.0ms
(/ x (+ wj 1))
18.0ms
(/ wj (+ wj 1))
36.0ms
(/ (/ x (+ wj 1)) (exp wj))
53.0ms
(- (+ (/ (/ x (+ wj 1)) (exp wj)) wj) (/ wj (+ wj 1)))

simplify119.0ms

Algorithm
egg-herbie
Counts
272 → 272
Iterations

Useful iterations: 2 (89.0ms)

IterNodesCost
010124140
145523266
250013260

prune512.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0.6b

localize7.0ms

Local error

Found 2 expressions with local error:

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

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-cbrt-cube
*-un-lft-identity
add-sqr-sqrt add-cube-cbrt add-log-exp
fma-def associate-*l* pow-prod-down prod-exp cbrt-unprod
expm1-log1p-u log1p-expm1-u
+-commutative flip3-+ associate-*r* sum-log *-commutative flip-+ distribute-lft-out
Counts
2 → 37
Calls
2 calls:
9.0ms
(+ x (pow wj 2))
16.0ms
(* 2 (* wj x))

series46.0ms

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

simplify71.0ms

Algorithm
egg-herbie
Counts
43 → 43
Iterations

Useful iterations: 3 (68.0ms)

IterNodesCost
0156135
1573114
22454114
35002112

prune94.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 0.6b

localize6.0ms

Local error

Found 1 expressions with local error:

0.0b
(* 2 (* wj x))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-cbrt-cube
associate-*l* pow-prod-down prod-exp cbrt-unprod
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
expm1-log1p-u associate-*r* *-commutative log1p-expm1-u add-log-exp
Counts
1 → 20
Calls
1 calls:
16.0ms
(* 2 (* wj x))

series17.0ms

Counts
1 → 3
Calls
1 calls:
17.0ms
(* 2 (* wj x))

simplify78.0ms

Algorithm
egg-herbie
Counts
23 → 23
Iterations

Useful iterations: 1 (4.0ms)

IterNodesCost
08872
132062
2123762
3344862
4500162

prune50.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 0.6b

localize11.0ms

Local error

Found 4 expressions with local error:

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

rewrite86.0ms

Algorithm
rewrite-expression-head
Rules
36×cbrt-prod
35×*-un-lft-identity
23×add-sqr-sqrt
18×cbrt-div
15×add-cube-cbrt
11×pow1
flip3-+ pow1/3 swap-sqr flip-+ distribute-lft-out
associate-*r* associate-*l*
add-exp-log
expm1-log1p-u frac-times add-cbrt-cube log1p-expm1-u 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 → 103
Calls
4 calls:
60.0ms
(* (cbrt (+ x (pow wj 2))) (cbrt (+ x (pow wj 2))))
7.0ms
(cbrt (+ x (pow wj 2)))
9.0ms
(cbrt (+ x (pow wj 2)))
7.0ms
(cbrt (+ x (pow wj 2)))

series1.1s

Counts
4 → 12
Calls
4 calls:
251.0ms
(* (cbrt (+ x (pow wj 2))) (cbrt (+ x (pow wj 2))))
288.0ms
(cbrt (+ x (pow wj 2)))
293.0ms
(cbrt (+ x (pow wj 2)))
291.0ms
(cbrt (+ x (pow wj 2)))

simplify170.0ms

Algorithm
egg-herbie
Counts
115 → 115
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
0259918
1988867
24915790
35001790

prune280.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 0.6b

regimes124.0ms

Accuracy

64.8% (0.6b remaining)

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

bsearch34.0ms

Steps
ItersRangePoint
7
1.749794004202426e-10
7.3863520332096535e-09
6.509211057300332e-09

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03718
14818
24818

end0.0ms

sample2.1s

Algorithm
intervals
Results
1.4s7879×body10240exit
193.0ms6304×body80valid
77.0ms773×body320valid
60.0ms440×body640valid
32.0ms556×body160valid