Details

Time bar (total: 4.4s)

sample47.0ms

Algorithm
intervals
Results
19.0ms110×body10240exit
8.0ms196×body80valid
3.0ms35×body320valid
3.0ms101×body80overflowed
1.0msbody640valid
1.0ms21×body160valid

simplify47.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 3 (7.0ms)

IterNodesCost
0219
1529
21139
32408
416258
550018

prune6.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 14.9b

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

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

series139.0ms

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

simplify122.0ms

Algorithm
egg-herbie
Counts
272 → 272
Iterations

Useful iterations: 2 (89.0ms)

IterNodesCost
010154090
145553249
250013243

prune511.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.3b

localize7.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))

rewrite61.0ms

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

series78.0ms

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

simplify36.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0237340
1926292
25001274

prune141.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0.3b

localize7.0ms

Local error

Found 2 expressions with local error:

0.0b
(- (* 1 (fma wj wj x)) (* 2 (* wj x)))
0.0b
(* 2 (* wj x))

rewrite10.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
expm1-log1p-u associate--l+ fma-udef log1p-expm1-u
distribute-rgt-in sub-neg flip3-- distribute-lft-in fma-neg diff-log associate-*r* prod-diff *-commutative flip--
Counts
2 → 38
Calls
2 calls:
3.0ms
(- (* 1 (fma wj wj x)) (* 2 (* wj x)))
6.0ms
(* 2 (* wj x))

series45.0ms

Counts
2 → 6
Calls
2 calls:
26.0ms
(- (* 1 (fma wj wj x)) (* 2 (* wj x)))
19.0ms
(* 2 (* wj x))

simplify38.0ms

Algorithm
egg-herbie
Counts
44 → 44
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0199225
1871190
25001182

prune88.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0.3b

localize14.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (cbrt (- (* 1 (fma wj wj x)) (* 2 (* wj x)))) (cbrt (- (* 1 (fma wj wj x)) (* 2 (* wj x)))))
0.6b
(cbrt (- (* 1 (fma wj wj x)) (* 2 (* wj x))))
0.6b
(cbrt (- (* 1 (fma wj wj x)) (* 2 (* wj x))))
0.6b
(cbrt (- (* 1 (fma wj wj x)) (* 2 (* wj x))))

rewrite27.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*
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 → 95
Calls
4 calls:
18.0ms
(* (cbrt (- (* 1 (fma wj wj x)) (* 2 (* wj x)))) (cbrt (- (* 1 (fma wj wj x)) (* 2 (* wj x)))))
2.0ms
(cbrt (- (* 1 (fma wj wj x)) (* 2 (* wj x))))
2.0ms
(cbrt (- (* 1 (fma wj wj x)) (* 2 (* wj x))))
2.0ms
(cbrt (- (* 1 (fma wj wj x)) (* 2 (* wj x))))

series639.0ms

Counts
4 → 12
Calls
4 calls:
167.0ms
(* (cbrt (- (* 1 (fma wj wj x)) (* 2 (* wj x)))) (cbrt (- (* 1 (fma wj wj x)) (* 2 (* wj x)))))
154.0ms
(cbrt (- (* 1 (fma wj wj x)) (* 2 (* wj x))))
157.0ms
(cbrt (- (* 1 (fma wj wj x)) (* 2 (* wj x))))
160.0ms
(cbrt (- (* 1 (fma wj wj x)) (* 2 (* wj x))))

simplify55.0ms

Algorithm
egg-herbie
Counts
107 → 107
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
02471441
110071340
250011261

prune288.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 0.3b

regimes71.0ms

Accuracy

70.2% (0.6b remaining)

Error of 0.9b against oracle of 0.3b and baseline of 2.3b

bsearch34.0ms

Steps
ItersRangePoint
8
9.879933556960907e-10
4.7559785702882385e-07
9.60333635941626e-09

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02613
12813
22813

end0.0ms

sample1.4s

Algorithm
intervals
Results
705.0ms3896×body10240exit
194.0ms6350×body80valid
106.0ms3898×body80overflowed
70.0ms763×body320valid
67.0ms437×body640valid
32.0ms536×body160valid