Details

Time bar (total: 10.7s)

sample91.0ms

Algorithm
intervals
Results
44.0ms133×body1280valid
19.0ms22×body2560valid
14.0ms67×body640valid
3.0ms19×body320valid
1.0ms13×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: 37.5b

localize13.0ms

Local error

Found 2 expressions with local error:

1.0b
(- (cos (+ x eps)) (cos x))
4.0b
(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))
5.0ms
(cos (+ x eps))

series65.0ms

Counts
2 → 6
Calls
2 calls:
49.0ms
(- (cos (+ x eps)) (cos x))
16.0ms
(cos (+ x eps))

simplify976.0ms

Counts
46 → 46
Iterations

Useful iterations: 3 (246.0ms)

IterNodesCost
091664
1189540
2471453
31861389
done5000389

prune107.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 0.3b

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite132.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 (/ (+ 0 eps) 2)) (sin (/ (+ (+ x eps) x) 2))))
15.0ms
(+ (+ x eps) x)
52.0ms
(* (sin (/ (+ 0 eps) 2)) (sin (/ (+ (+ x eps) x) 2)))
21.0ms
(sin (/ (+ (+ x eps) x) 2))

series169.0ms

Counts
4 → 12
Calls
4 calls:
60.0ms
(* -2 (* (sin (/ (+ 0 eps) 2)) (sin (/ (+ (+ x eps) x) 2))))
26.0ms
(+ (+ x eps) x)
52.0ms
(* (sin (/ (+ 0 eps) 2)) (sin (/ (+ (+ x eps) x) 2)))
31.0ms
(sin (/ (+ (+ x eps) x) 2))

simplify2.2s

Counts
84 → 84
Iterations

Useful iterations: 3 (647.0ms)

IterNodesCost
01291298
12971154
2898995
33868910
done5001910

prune259.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 0.3b

localize13.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (+ x eps) x)
0.3b
(* (* (sin (* 1/2 eps)) -2) (sin (/ (+ (+ x eps) x) 2)))
4.1b
(sin (/ (+ (+ x eps) x) 2))

rewrite79.0ms

Algorithm
rewrite-expression-head
Rules
12×*-un-lft-identity
pow1 add-exp-log add-cbrt-cube add-log-exp
add-sqr-sqrt add-cube-cbrt
fma-def distribute-lft-out
expm1-log1p-u associate-*r* pow-prod-down prod-exp sum-log cbrt-unprod log1p-expm1-u
+-commutative associate-+l+ flip3-+ associate-*l* *-commutative flip-+
Counts
3 → 50
Calls
3 calls:
15.0ms
(+ (+ x eps) x)
42.0ms
(* (* (sin (* 1/2 eps)) -2) (sin (/ (+ (+ x eps) x) 2)))
21.0ms
(sin (/ (+ (+ x eps) x) 2))

series113.0ms

Counts
3 → 9
Calls
3 calls:
21.0ms
(+ (+ x eps) x)
63.0ms
(* (* (sin (* 1/2 eps)) -2) (sin (/ (+ (+ x eps) x) 2)))
28.0ms
(sin (/ (+ (+ x eps) x) 2))

simplify1.7s

Counts
59 → 59
Iterations

Useful iterations: 3 (556.0ms)

IterNodesCost
097748
1243720
2764612
33380557
done5001557

prune166.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 0.3b

localize21.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt (sin (/ (+ 0 eps) 2)))
0.6b
(cbrt (sin (/ (+ 0 eps) 2)))
0.6b
(cbrt (sin (/ eps 2)))
4.1b
(sin (* (fma 2 x eps) 1/2))

rewrite9.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 (/ (+ 0 eps) 2)))
3.0ms
(cbrt (sin (/ (+ 0 eps) 2)))
1.0ms
(cbrt (sin (/ eps 2)))
2.0ms
(sin (* (fma 2 x eps) 1/2))

series351.0ms

Counts
4 → 12
Calls
4 calls:
107.0ms
(cbrt (sin (/ (+ 0 eps) 2)))
106.0ms
(cbrt (sin (/ (+ 0 eps) 2)))
109.0ms
(cbrt (sin (/ eps 2)))
28.0ms
(sin (* (fma 2 x eps) 1/2))

simplify776.0ms

Counts
60 → 60
Iterations

Useful iterations: 3 (145.0ms)

IterNodesCost
078670
1135585
2291541
31136501
done5001501

prune257.0ms

Pruning

12 alts after pruning (10 fresh and 2 done)

Merged error: 0.3b

regimes139.0ms

Accuracy

97.9% (0.3b remaining)

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

bsearch110.0ms

Steps
ItersRangePoint
8
9.143643357499823e-08
5.968040026638966e-05
2.684800803254601e-05
9
-4030.930838101798
-2.879878352494296e-05
-4.402851865399074e-05

simplify2.0ms

Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
02950
13650
done3650

end0.0ms

sample2.9s

Algorithm
intervals
Results
1.5s4457×body1280valid
617.0ms686×body2560valid
398.0ms1837×body640valid
96.0ms656×body320valid
30.0ms292×body160valid
4.0ms72×body80valid