Details

Time bar (total: 13.7s)

sample92.0ms

Algorithm
intervals
Results
47.0ms136×body1280valid
17.0ms19×body2560valid
14.0ms60×body640valid
4.0ms26×body320valid
1.0ms11×body160valid
0.0msbody80valid

simplify4.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
067
197
2107
done107

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 38.5b

localize9.0ms

Local error

Found 2 expressions with local error:

1.1b
(- (cos (+ x eps)) (cos x))
3.5b
(cos (+ x eps))

rewrite13.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt *-un-lft-identity
add-cube-cbrt prod-diff
add-log-exp
fma-neg
pow1 add-exp-log expm1-log1p-u cos-sum add-cbrt-cube log1p-expm1-u
associate--l- sub-neg flip3-- diff-log flip-- diff-cos distribute-lft-out-- difference-of-squares
Counts
2 → 40
Calls
2 calls:
7.0ms
(- (cos (+ x eps)) (cos x))
4.0ms
(cos (+ x eps))

series73.0ms

Counts
2 → 6
Calls
2 calls:
51.0ms
(- (cos (+ x eps)) (cos x))
22.0ms
(cos (+ x eps))

simplify1.2s

Counts
46 → 46
Iterations

Useful iterations: 3 (241.0ms)

IterNodesCost
091664
1189540
2460453
31565389
done5001389

prune110.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 0.3b

localize20.0ms

Local error

Found 4 expressions with local error:

0.0b
(* -2 (* (sin (/ (- eps 0) 2)) (sin (/ (+ (+ x eps) x) 2))))
0.0b
(+ (+ x eps) x)
0.3b
(* (sin (/ (- eps 0) 2)) (sin (/ (+ (+ x eps) x) 2)))
3.6b
(sin (/ (+ (+ x eps) x) 2))

rewrite136.0ms

Algorithm
rewrite-expression-head
Rules
15×*-un-lft-identity
11×pow1 add-exp-log add-cbrt-cube
10×add-sqr-sqrt
add-log-exp
add-cube-cbrt
associate-*l*
expm1-log1p-u fma-def associate-*r* pow-prod-down prod-exp cbrt-unprod log1p-expm1-u distribute-lft-out
sum-log
*-commutative sin-mult
+-commutative associate-+l+ flip3-+ associate-*r/ flip-+ unswap-sqr
Counts
4 → 72
Calls
4 calls:
43.0ms
(* -2 (* (sin (/ (- eps 0) 2)) (sin (/ (+ (+ x eps) x) 2))))
15.0ms
(+ (+ x eps) x)
54.0ms
(* (sin (/ (- eps 0) 2)) (sin (/ (+ (+ x eps) x) 2)))
21.0ms
(sin (/ (+ (+ x eps) x) 2))

series179.0ms

Counts
4 → 12
Calls
4 calls:
65.0ms
(* -2 (* (sin (/ (- eps 0) 2)) (sin (/ (+ (+ x eps) x) 2))))
27.0ms
(+ (+ x eps) x)
55.0ms
(* (sin (/ (- eps 0) 2)) (sin (/ (+ (+ x eps) x) 2)))
32.0ms
(sin (/ (+ (+ x eps) x) 2))

simplify2.5s

Counts
84 → 84
Iterations

Useful iterations: 3 (553.0ms)

IterNodesCost
01291298
13001154
2830995
32573908
done5001908

prune477.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 0.2b

localize19.0ms

Local error

Found 4 expressions with local error:

0.1b
(log1p (* (sin (/ (fma 2 x eps) 2)) (sin (/ eps 2))))
0.2b
(expm1 (log1p (* (sin (/ (fma 2 x eps) 2)) (sin (/ eps 2)))))
0.3b
(* (sin (/ (fma 2 x eps) 2)) (sin (/ eps 2)))
3.6b
(sin (/ (fma 2 x eps) 2))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1 add-exp-log add-cube-cbrt *-un-lft-identity add-cbrt-cube
expm1-log1p-u
log1p-expm1-u add-log-exp
associate-*r* associate-*l*
log1p-udef expm1-log1p log1p-expm1 pow-prod-down prod-exp *-commutative cbrt-unprod sin-mult expm1-udef unswap-sqr
Counts
4 → 52
Calls
4 calls:
0.0ms
(log1p (* (sin (/ (fma 2 x eps) 2)) (sin (/ eps 2))))
0.0ms
(expm1 (log1p (* (sin (/ (fma 2 x eps) 2)) (sin (/ eps 2)))))
9.0ms
(* (sin (/ (fma 2 x eps) 2)) (sin (/ eps 2)))
2.0ms
(sin (/ (fma 2 x eps) 2))

series444.0ms

Counts
4 → 12
Calls
4 calls:
168.0ms
(log1p (* (sin (/ (fma 2 x eps) 2)) (sin (/ eps 2))))
160.0ms
(expm1 (log1p (* (sin (/ (fma 2 x eps) 2)) (sin (/ eps 2)))))
85.0ms
(* (sin (/ (fma 2 x eps) 2)) (sin (/ eps 2)))
31.0ms
(sin (/ (fma 2 x eps) 2))

simplify2.6s

Counts
64 → 64
Iterations

Useful iterations: 5 (1.6s)

IterNodesCost
093982
1169947
2387829
3831825
41738819
53781800
done5000800

prune247.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 0.2b

localize26.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt (sin (/ (- eps 0) 2)))
0.6b
(cbrt (sin (/ (- eps 0) 2)))
0.6b
(cbrt (sin (/ eps 2)))
3.6b
(sin (/ (fma 2 x eps) 2))

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
cbrt-prod
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp
pow1/3
Counts
4 → 48
Calls
4 calls:
3.0ms
(cbrt (sin (/ (- eps 0) 2)))
3.0ms
(cbrt (sin (/ (- eps 0) 2)))
1.0ms
(cbrt (sin (/ eps 2)))
2.0ms
(sin (/ (fma 2 x eps) 2))

series388.0ms

Counts
4 → 12
Calls
4 calls:
120.0ms
(cbrt (sin (/ (- eps 0) 2)))
116.0ms
(cbrt (sin (/ (- eps 0) 2)))
117.0ms
(cbrt (sin (/ eps 2)))
35.0ms
(sin (/ (fma 2 x eps) 2))

simplify1.7s

Counts
60 → 60
Iterations

Useful iterations: 4 (740.0ms)

IterNodesCost
078670
1139585
2263541
3715501
43087480
done5001480

prune281.0ms

Pruning

12 alts after pruning (10 fresh and 2 done)

Merged error: 0.2b

regimes154.0ms

Accuracy

97.9% (0.3b remaining)

Error of 0.7b against oracle of 0.4b and baseline of 15.1b

bsearch125.0ms

Steps
ItersRangePoint
9
3.182061564411226e-09
0.0591185632533196
9.949689884521833e-06
9
-0.04390830018224924
-3.199438276574562e-09
-7.455928426940857e-05

simplify3.0ms

Iterations

Useful iterations: 1 (2.0ms)

IterNodesCost
02752
13439
done3439

end0.0ms

sample3.0s

Algorithm
intervals
Results
1.6s4395×body1280valid
561.0ms646×body2560valid
434.0ms1879×body640valid
111.0ms708×body320valid
32.0ms301×body160valid
4.0ms71×body80valid