Details

Time bar (total: 9.1s)

sample54.0ms

Algorithm
intervals
Results
24.0ms57×body2560valid
9.0ms41×body1280valid
8.0ms59×body640valid
2.0ms23×body320valid
2.0ms63×body80valid
1.0ms13×body160valid

simplify12.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
068
1138
2218
3268
4298
done298

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 32.9b

localize6.0ms

Local error

Found 2 expressions with local error:

1.2b
(- 1.0 (cos x))
17.7b
(/ (- 1.0 (cos x)) (* x x))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
17×add-sqr-sqrt *-un-lft-identity
11×add-cube-cbrt
prod-diff
add-exp-log add-cbrt-cube
times-frac associate-/l*
add-log-exp
fma-neg distribute-lft-out-- difference-of-squares
pow1 cbrt-undiv expm1-log1p-u flip3-- div-exp flip-- log1p-expm1-u associate-/l/
sub-neg frac-2neg diff-log div-sub prod-exp clear-num associate-/r* cbrt-unprod div-inv
Counts
2 → 58
Calls
2 calls:
7.0ms
(- 1.0 (cos x))
9.0ms
(/ (- 1.0 (cos x)) (* x x))

series62.0ms

Counts
2 → 6
Calls
2 calls:
18.0ms
(- 1.0 (cos x))
44.0ms
(/ (- 1.0 (cos x)) (* x x))

simplify2.4s

Counts
64 → 64
Iterations

Useful iterations: done (2.4s)

IterNodesCost
0116808
1272678
2870566
34566526
done5001525

prune132.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 0.1b

localize9.0ms

Local error

Found 2 expressions with local error:

0.0b
(fma 1/720 (pow x 4) 1/2)
11.8b
(fma (pow x 2) -1/24 (fma 1/720 (pow x 4) 1/2))

rewrite1.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-sqr-sqrt expm1-log1p-u add-cube-cbrt *-un-lft-identity add-cbrt-cube fma-udef log1p-expm1-u add-log-exp
Counts
2 → 20
Calls
2 calls:
0.0ms
(fma 1/720 (pow x 4) 1/2)
0.0ms
(fma (pow x 2) -1/24 (fma 1/720 (pow x 4) 1/2))

series126.0ms

Counts
2 → 6
Calls
2 calls:
83.0ms
(fma 1/720 (pow x 4) 1/2)
43.0ms
(fma (pow x 2) -1/24 (fma 1/720 (pow x 4) 1/2))

simplify1.9s

Counts
26 → 26
Iterations

Useful iterations: 2 (23.0ms)

IterNodesCost
034298
153292
2158255
3572255
43418255
done5000255

prune77.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 0.1b

localize7.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ (- 1.0 (cos x)) x)
0.1b
(* (/ 1 x) (/ (- 1.0 (cos x)) x))
1.2b
(- 1.0 (cos x))

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
69×add-sqr-sqrt
54×*-un-lft-identity
46×times-frac
36×add-cube-cbrt
27×add-exp-log
19×associate-*r*
17×add-cbrt-cube
13×associate-*l*
div-exp prod-diff
prod-exp distribute-lft-out-- difference-of-squares
unswap-sqr
pow1 cbrt-undiv associate-/l* add-log-exp
cbrt-unprod
expm1-log1p-u fma-neg associate-/r* log1p-expm1-u div-inv
rec-exp flip3-- 1-exp flip-- associate-/l/
frac-times sub-neg frac-2neg diff-log div-sub associate-*r/ pow-prod-down associate-*l/ clear-num *-commutative
Counts
3 → 132
Calls
3 calls:
8.0ms
(/ (- 1.0 (cos x)) x)
22.0ms
(* (/ 1 x) (/ (- 1.0 (cos x)) x))
3.0ms
(- 1.0 (cos x))

series108.0ms

Counts
3 → 9
Calls
3 calls:
43.0ms
(/ (- 1.0 (cos x)) x)
46.0ms
(* (/ 1 x) (/ (- 1.0 (cos x)) x))
19.0ms
(- 1.0 (cos x))

simplify810.0ms

Counts
141 → 141
Iterations

Useful iterations: 2 (254.0ms)

IterNodesCost
02191855
15771581
219081364
done50011364

prune247.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 0.1b

localize11.0ms

Local error

Found 4 expressions with local error:

0.1b
(log1p (expm1 (- 1.0 (cos x))))
0.1b
(* (/ 1 x) (/ (log1p (expm1 (- 1.0 (cos x)))) x))
0.2b
(expm1 (- 1.0 (cos x)))
1.2b
(- 1.0 (cos x))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
44×add-sqr-sqrt
29×*-un-lft-identity
26×add-exp-log
25×add-cube-cbrt times-frac
16×add-cbrt-cube
13×associate-*r* associate-*l*
prod-diff
div-exp prod-exp
pow1 add-log-exp unswap-sqr
log1p-expm1-u
cbrt-undiv expm1-log1p-u cbrt-unprod
fma-neg
rec-exp 1-exp div-inv
frac-times sub-neg log1p-udef expm1-log1p flip3-- diff-log log1p-expm1 associate-*r/ pow-prod-down associate-*l/ *-commutative flip-- distribute-lft-out-- expm1-udef difference-of-squares
Counts
4 → 108
Calls
4 calls:
0.0ms
(log1p (expm1 (- 1.0 (cos x))))
12.0ms
(* (/ 1 x) (/ (log1p (expm1 (- 1.0 (cos x)))) x))
0.0ms
(expm1 (- 1.0 (cos x)))
3.0ms
(- 1.0 (cos x))

series412.0ms

Counts
4 → 12
Calls
4 calls:
148.0ms
(log1p (expm1 (- 1.0 (cos x))))
178.0ms
(* (/ 1 x) (/ (log1p (expm1 (- 1.0 (cos x)))) x))
66.0ms
(expm1 (- 1.0 (cos x)))
19.0ms
(- 1.0 (cos x))

simplify778.0ms

Counts
120 → 120
Iterations

Useful iterations: 2 (226.0ms)

IterNodesCost
02001678
14961262
215881063
done50001063

prune232.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 0.1b

regimes46.0ms

Accuracy

99.6% (0.1b remaining)

Error of 0.2b against oracle of 0.1b and baseline of 31.5b

bsearch75.0ms

Steps
ItersRangePoint
10
5.968040026638966e-05
117627206.70733242
0.024083451253618247
10
-64880754058.88788
-2.651420353119469e-05
-0.02660967226737158

simplify2.0ms

Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
02941
13241
done3241

end0.0ms

sample1.6s

Algorithm
intervals
Results
746.0ms1660×body2560valid
289.0ms1248×body1280valid
208.0ms1448×body640valid
98.0ms918×body320valid
85.0ms2275×body80valid
32.0ms451×body160valid