Details

Time bar (total: 1.9s)

sample28.0ms

Algorithm
intervals
Results
14.0ms96×body1280valid
4.0ms128×body80valid
2.0ms16×body640valid
1.0ms10×body160valid
1.0msbody320valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
094
1104
2104

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 14.3b

localize6.0ms

Local error

Found 2 expressions with local error:

0.0b
(atan (+ N 1.0))
2.4b
(- (atan (+ N 1.0)) (atan N))

rewrite3.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt *-un-lft-identity add-log-exp
pow1 add-exp-log add-cube-cbrt add-cbrt-cube
sub-neg flip3-- diff-log diff-atan flip-- distribute-lft-out-- difference-of-squares
Counts
2 → 22
Calls
2 calls:
0.0ms
(atan (+ N 1.0))
2.0ms
(- (atan (+ N 1.0)) (atan N))

series12.0ms

Counts
2 → 6
Calls
2 calls:
1.0ms
(atan (+ N 1.0))
11.0ms
(- (atan (+ N 1.0)) (atan N))

simplify77.0ms

Algorithm
egg-herbie
Counts
28 → 28
Iterations

Useful iterations: 3 (12.0ms)

IterNodesCost
075154
1145145
2289143
3681142
42491142
55001142

prune49.0ms

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0.6b

localize6.0ms

Local error

Found 1 expressions with local error:

0.6b
(atan2 1.0 (+ 1 (* (+ N 1.0) N)))

rewrite0.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-sqr-sqrt add-cube-cbrt *-un-lft-identity add-cbrt-cube add-log-exp
Counts
1 → 7
Calls
1 calls:
0.0ms
(atan2 1.0 (+ 1 (* (+ N 1.0) N)))

series3.0ms

Counts
1 → 3
Calls
1 calls:
2.0ms
(atan2 1.0 (+ 1 (* (+ N 1.0) N)))

simplify303.0ms

Algorithm
egg-herbie
Counts
10 → 10
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03565
15053
211353
322453
468753
5429953
6500153

prune19.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 0.6b

localize8.0ms

Local error

Found 4 expressions with local error:

0.6b
(atan2 1.0 (+ 1 (* (+ N 1.0) N)))
0.6b
(* (sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N)))) (sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N)))))
15.7b
(sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))
15.7b
(sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
28×add-sqr-sqrt
24×sqrt-prod
21×pow1
14×add-cube-cbrt *-un-lft-identity
10×sqrt-pow1 pow1/2
swap-sqr
add-exp-log associate-*r* associate-*l* add-cbrt-cube
pow-prod-up
add-log-exp unswap-sqr
pow-prod-down pow-sqr
rem-sqrt-square
pow2 pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 82
Calls
4 calls:
0.0ms
(atan2 1.0 (+ 1 (* (+ N 1.0) N)))
6.0ms
(* (sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N)))) (sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N)))))
1.0ms
(sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))
1.0ms
(sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))

series36.0ms

Counts
4 → 12
Calls
4 calls:
2.0ms
(atan2 1.0 (+ 1 (* (+ N 1.0) N)))
3.0ms
(* (sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N)))) (sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N)))))
16.0ms
(sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))
15.0ms
(sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))

simplify120.0ms

Algorithm
egg-herbie
Counts
94 → 94
Iterations

Useful iterations: 3 (110.0ms)

IterNodesCost
0110649
1391565
22248539
35001520

prune126.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 0.5b

localize10.0ms

Local error

Found 4 expressions with local error:

0.6b
(* (sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N)))) (* (sqrt (sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))) (sqrt (sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N)))))))
15.7b
(sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))
15.7b
(sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))
15.7b
(sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
54×sqrt-pow1
45×pow1
30×pow1/2 pow-prod-up
16×add-sqr-sqrt
14×sqrt-prod
add-exp-log add-cube-cbrt *-un-lft-identity add-cbrt-cube
pow-prod-down
associate-*l* pow-sqr
add-log-exp
rem-sqrt-square prod-exp cbrt-unprod
sqrt-unprod swap-sqr unswap-sqr
associate-*r* *-commutative
Counts
4 → 85
Calls
4 calls:
27.0ms
(* (sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N)))) (* (sqrt (sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))) (sqrt (sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N)))))))
1.0ms
(sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))
1.0ms
(sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))
1.0ms
(sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))

series46.0ms

Counts
4 → 12
Calls
4 calls:
3.0ms
(* (sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N)))) (* (sqrt (sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))) (sqrt (sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N)))))))
14.0ms
(sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))
14.0ms
(sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))
15.0ms
(sqrt (atan2 1.0 (+ 1 (* (+ N 1.0) N))))

simplify83.0ms

Algorithm
egg-herbie
Counts
97 → 97
Iterations

Useful iterations: 2 (17.0ms)

IterNodesCost
0193630
1469496
21361484
35001484

prune143.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 0.5b

regimes46.0ms

Accuracy

0% (0.0b remaining)

Error of 0.5b against oracle of 0.4b and baseline of 0.5b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0124
1124

end0.0ms

sample767.0ms

Algorithm
intervals
Results
416.0ms2931×body1280valid
126.0ms3933×body80valid
76.0ms639×body640valid
28.0ms309×body320valid
12.0ms188×body160valid