Details

Time bar (total: 4.2s)

sample110.0ms

Algorithm
halfpoints

simplify59.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0307
1477
2847
31217
42067
54107
610177
720747
850017

prune5.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.0b

localize11.0ms

Local error

Found 2 expressions with local error:

0.0b
(* (/ (+ (exp x) (exp (- x))) 2.0) (cos y))
0.0b
(+ (exp x) (exp (- x)))

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
19×*-un-lft-identity
16×add-sqr-sqrt associate-*l*
13×times-frac
11×add-cube-cbrt
add-exp-log add-cbrt-cube
pow1 distribute-lft-out add-log-exp
associate-*r*
prod-exp cbrt-unprod unswap-sqr
cbrt-undiv +-commutative flip3-+ div-exp pow-prod-down associate-*l/ sum-log *-commutative flip-+ div-inv
Counts
2 → 47
Calls
2 calls:
26.0ms
(* (/ (+ (exp x) (exp (- x))) 2.0) (cos y))
10.0ms
(+ (exp x) (exp (- x)))

series87.0ms

Counts
2 → 6
Calls
2 calls:
63.0ms
(* (/ (+ (exp x) (exp (- x))) 2.0) (cos y))
23.0ms
(+ (exp x) (exp (- x)))

simplify164.0ms

Algorithm
egg-herbie
Counts
53 → 53
Iterations

Useful iterations: 2 (26.0ms)

IterNodesCost
0277461
11018404
24757402
35001402

prune140.0ms

Filtered
53 candidates to 40 candidates (75.5%)
Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0b

localize13.0ms

Local error

Found 2 expressions with local error:

0.0b
(* (/ (+ (pow x 2) (+ (* 1/12 (pow x 4)) 2)) 2.0) (cos y))
0.1b
(* 1/12 (pow x 4))

rewrite62.0ms

Algorithm
rewrite-expression-head
Rules
24×add-sqr-sqrt
20×*-un-lft-identity
19×associate-*l*
14×add-cube-cbrt
13×times-frac
12×add-exp-log
10×associate-*r*
add-cbrt-cube
prod-exp unswap-sqr
pow1 unpow-prod-down
cbrt-unprod distribute-lft-out
*-commutative add-log-exp sqr-pow
cbrt-undiv pow-to-exp div-exp pow-prod-down associate-*l/ pow-exp div-inv
Counts
2 → 60
Calls
2 calls:
52.0ms
(* (/ (+ (pow x 2) (+ (* 1/12 (pow x 4)) 2)) 2.0) (cos y))
6.0ms
(* 1/12 (pow x 4))

series107.0ms

Counts
2 → 6
Calls
2 calls:
70.0ms
(* (/ (+ (pow x 2) (+ (* 1/12 (pow x 4)) 2)) 2.0) (cos y))
36.0ms
(* 1/12 (pow x 4))

simplify40.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0301504
11243444
25001440

prune165.0ms

Filtered
66 candidates to 44 candidates (66.7%)
Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0b

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (exp x) (exp (- x)))
0.0b
(+ (exp x) (exp (- x)))
0.2b
(* (/ (sqrt (+ (exp x) (exp (- x)))) 2.0) (cos y))
0.7b
(* (/ (sqrt (+ (exp x) (exp (- x)))) 1) (* (/ (sqrt (+ (exp x) (exp (- x)))) 2.0) (cos y)))

rewrite102.0ms

Algorithm
rewrite-expression-head
Rules
50×associate-*l*
49×*-un-lft-identity
44×times-frac
41×add-sqr-sqrt
39×add-exp-log
33×add-cube-cbrt
30×add-cbrt-cube
25×sqrt-prod
17×prod-exp
12×cbrt-unprod
11×pow1
10×div-exp
distribute-lft-out add-log-exp
cbrt-undiv
associate-*r* pow-prod-down associate-*l/
1-exp unswap-sqr
+-commutative flip3-+ sum-log *-commutative flip-+ div-inv
frac-times associate-*r/
Counts
4 → 123
Calls
4 calls:
5.0ms
(+ (exp x) (exp (- x)))
5.0ms
(+ (exp x) (exp (- x)))
29.0ms
(* (/ (sqrt (+ (exp x) (exp (- x)))) 2.0) (cos y))
57.0ms
(* (/ (sqrt (+ (exp x) (exp (- x)))) 1) (* (/ (sqrt (+ (exp x) (exp (- x)))) 2.0) (cos y)))

series204.0ms

Counts
4 → 12
Calls
4 calls:
27.0ms
(+ (exp x) (exp (- x)))
22.0ms
(+ (exp x) (exp (- x)))
91.0ms
(* (/ (sqrt (+ (exp x) (exp (- x)))) 2.0) (cos y))
63.0ms
(* (/ (sqrt (+ (exp x) (exp (- x)))) 1) (* (/ (sqrt (+ (exp x) (exp (- x)))) 2.0) (cos y)))

simplify63.0ms

Algorithm
egg-herbie
Counts
135 → 135
Iterations

Useful iterations: 2 (51.0ms)

IterNodesCost
05621692
125921266
250021219

prune334.0ms

Filtered
135 candidates to 88 candidates (65.2%)
Pruning

2 alts after pruning (0 fresh and 2 done)

Merged error: 0b

regimes26.0ms

Accuracy

0% (0.6b remaining)

Error of 0.7b against oracle of 0.0b and baseline of 0.7b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0188
1188

end0.0ms

sample2.5s

Algorithm
halfpoints