Details

Time bar (total: 4.5s)

analyze2.0ms

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
99.9%0%0.1%1

sample97.0ms

Algorithm
intervals
Results
52.0ms116×body1280valid
15.0ms57×body640valid
14.0ms15×body2560valid
4.0ms22×body320valid
2.0ms34×body80valid
1.0ms12×body160valid

simplify3.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
077
177

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 37.5b

Counts
2 → 1

localize8.0ms

Local error

Found 2 expressions with local error:

1.8b
(- (sin (+ x eps)) (sin x))
4.1b
(sin (+ x eps))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt *-un-lft-identity add-log-exp
pow1 add-exp-log add-cube-cbrt sin-sum add-cbrt-cube
sub-neg flip3-- diff-log diff-sin associate--l+ flip-- distribute-lft-out-- difference-of-squares
Counts
2 → 23
Calls
2 calls:
7.0ms
(- (sin (+ x eps)) (sin x))
10.0ms
(sin (+ x eps))

series13.0ms

Counts
2 → 6
Calls
2 calls:
8.0ms
(- (sin (+ x eps)) (sin x))
5.0ms
(sin (+ x eps))

simplify38.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 0 (34.0ms)

IterNodesCost
04933268
14933268

prune48.0ms

Filtered
23 candidates to 29 candidates (-26.1%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New25429
Fresh000
Picked101
Done000
Total26430

Merged error: 0.2b

Counts
30 → 4

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 2 (* (sin (/ eps 2)) (cos (/ (+ x (+ x eps)) 2))))
0.0b
(+ x (+ x eps))
0.2b
(* (sin (/ eps 2)) (cos (/ (+ x (+ x eps)) 2)))
4.2b
(cos (/ (+ x (+ x eps)) 2))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
12×*-un-lft-identity
11×pow1 add-exp-log add-cbrt-cube
add-sqr-sqrt add-log-exp
add-cube-cbrt
associate-*l*
associate-*r* pow-prod-down prod-exp cbrt-unprod
sum-log distribute-lft-out
*-commutative sin-cos-mult
+-commutative associate-+r+ flip3-+ associate-*r/ flip-+ unswap-sqr
Counts
4 → 60
Calls
4 calls:
7.0ms
(* 2 (* (sin (/ eps 2)) (cos (/ (+ x (+ x eps)) 2))))
5.0ms
(+ x (+ x eps))
5.0ms
(* (sin (/ eps 2)) (cos (/ (+ x (+ x eps)) 2)))
7.0ms
(cos (/ (+ x (+ x eps)) 2))

series32.0ms

Counts
4 → 12
Calls
4 calls:
12.0ms
(* 2 (* (sin (/ eps 2)) (cos (/ (+ x (+ x eps)) 2))))
4.0ms
(+ x (+ x eps))
10.0ms
(* (sin (/ eps 2)) (cos (/ (+ x (+ x eps)) 2)))
5.0ms
(cos (/ (+ x (+ x eps)) 2))

simplify40.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 0 (33.0ms)

IterNodesCost
04990887
14990887

prune136.0ms

Filtered
53 candidates to 72 candidates (-35.8%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New66672
Fresh123
Picked101
Done000
Total68876

Merged error: 0.2b

Counts
76 → 8

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 2 (sin (/ eps 2)))
0.0b
(+ x (+ x eps))
0.2b
(* (* 2 (sin (/ eps 2))) (cos (/ (+ x (+ x eps)) 2)))
4.2b
(cos (/ (+ x (+ x eps)) 2))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
12×*-un-lft-identity
11×pow1 add-exp-log add-cbrt-cube
add-sqr-sqrt add-log-exp
add-cube-cbrt
associate-*r*
associate-*l* pow-prod-down prod-exp cbrt-unprod
sum-log distribute-lft-out
*-commutative
+-commutative associate-+r+ flip3-+ flip-+ unswap-sqr
Counts
4 → 58
Calls
4 calls:
5.0ms
(* 2 (sin (/ eps 2)))
5.0ms
(+ x (+ x eps))
7.0ms
(* (* 2 (sin (/ eps 2))) (cos (/ (+ x (+ x eps)) 2)))
7.0ms
(cos (/ (+ x (+ x eps)) 2))

series25.0ms

Counts
4 → 12
Calls
4 calls:
3.0ms
(* 2 (sin (/ eps 2)))
4.0ms
(+ x (+ x eps))
12.0ms
(* (* 2 (sin (/ eps 2))) (cos (/ (+ x (+ x eps)) 2)))
5.0ms
(cos (/ (+ x (+ x eps)) 2))

simplify40.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 0 (33.0ms)

IterNodesCost
04934700
14934700

prune295.0ms

Filtered
48 candidates to 70 candidates (-45.8%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New69170
Fresh347
Picked011
Done000
Total72678

Merged error: 0.2b

Counts
78 → 6

localize16.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (sin (/ eps 2)) (cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3)))
0.4b
(cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3))
0.5b
(pow (cos (/ (+ x (+ x eps)) 2)) 3)
4.2b
(cos (/ (+ x (+ x eps)) 2))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
28×cbrt-prod
24×add-sqr-sqrt
15×add-cube-cbrt *-un-lft-identity associate-*r*
10×unpow-prod-down cube-prod
pow1 add-exp-log
add-cbrt-cube
unswap-sqr
add-log-exp sqr-pow
cube-mult pow-unpow unpow3 associate-*l*
pow-to-exp pow-pow pow1/3 pow-prod-down pow-exp prod-exp *-commutative rem-cbrt-cube cbrt-unprod rem-cube-cbrt
Counts
4 → 85
Calls
4 calls:
8.0ms
(* (sin (/ eps 2)) (cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3)))
2.0ms
(cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3))
2.0ms
(pow (cos (/ (+ x (+ x eps)) 2)) 3)
9.0ms
(cos (/ (+ x (+ x eps)) 2))

series34.0ms

Counts
4 → 12
Calls
4 calls:
10.0ms
(* (sin (/ eps 2)) (cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3)))
6.0ms
(cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3))
12.0ms
(pow (cos (/ (+ x (+ x eps)) 2)) 3)
5.0ms
(cos (/ (+ x (+ x eps)) 2))

simplify53.0ms

Algorithm
egg-herbie
Counts
97 → 97
Iterations

Useful iterations: 0 (43.0ms)

IterNodesCost
052261255

prune132.0ms

Filtered
59 candidates to 97 candidates (-64.4%)
Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New97097
Fresh044
Picked011
Done011
Total976103

Merged error: 0.2b

Counts
103 → 6

regimes128.0ms

Accuracy

99.5% (0.1b remaining)

Error of 0.4b against oracle of 0.3b and baseline of 14.7b

bsearch113.0ms

Steps
ItersRangePoint
10
3.14523817394636e-14
52.849086929477764
6.897912047083434e-09
9
-4.978065389594377e-07
-1.8958666446607609e-16
-9.845370976900334e-09

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03551
13551

end0.0ms

analyze1.0ms

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
99.9%0%0.1%1

sample3.2s

Algorithm
intervals
Results
1.6s3341×body1280valid
644.0ms655×body2560valid
512.0ms1807×body640valid
146.0ms766×body320valid
64.0ms1066×body80valid
47.0ms365×body160valid

Profiling

Loading profile data...