Details

Time bar (total: 5.1s)

analyze323.0ms (6.3%)

Algorithm
search
Search
TrueOtherFalseIter
0%100%0%0
0%100%0%1
0%100%0%2
50%50%0%3
75%25%0%4
75%25%0%5
75%25%0%6
78.1%21.9%0%7
78.1%21.9%0%8
78.1%21.9%0%9
78.1%21.9%0%10
78.1%21.9%0%11
78.1%21.9%0%12
78.1%21.9%0%13
78.1%21.8%0%14
Compiler

Compiled 10 to 7 computations (30% saved)

sample2.9s (56.2%)

Results
1.5s2133×body2048valid
444.0ms1112×body1024valid
432.0ms1572×body512valid
271.0ms2583×body128valid
159.0ms766×body256valid
60.0ms90×body4096valid
Compiler

Compiled 29 to 20 computations (31% saved)

simplify20.0ms (0.4%)

Algorithm
egg-herbie
Rules
424×fma-def_binary64
293×fma-neg_binary64
86×div-sub_binary64
74×associate-/l*_binary64
63×times-frac_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0712
11612
22712
34012
47312
512712
619212
731712
862112
9114012
10170012
11182912
Stop Event
saturated
Counts
1 → 1

prune1.0ms (0%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Error
34.9b
Counts
2 → 1
Alt Table
StatusErrorProgram
34.9b
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))
Compiler

Compiled 27 to 18 computations (33.3% saved)

localize5.0ms (0.1%)

Local error

Found 2 expressions with local error:

NewErrorProgram
1.6b
(-.f64 1 (cos.f64 x))
16.4b
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))

series5.0ms (0.1%)

Counts
2 → 16
Calls

2 calls:

3.0ms
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))
2.0ms
(-.f64 1 (cos.f64 x))

rewrite56.0ms (1.1%)

Algorithm
batch-egg-rewrite
Rules
818×log1p-expm1-u_binary64
818×expm1-log1p-u_binary64
259×prod-diff_binary64
102×egg-rr
76×add-sqr-sqrt_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0718
115318
2212818
Stop Event
node limit
Counts
2 → 102
Calls

2 calls:

53.0ms
(-.f64 1 (cos.f64 x))
53.0ms
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))

simplify32.0ms (0.6%)

Algorithm
egg-herbie
Rules
588×associate-*l*_binary64
468×fma-def_binary64
434×associate-*r*_binary64
413×unswap-sqr_binary64
387×cancel-sign-sub-inv_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
035224
197220
2266214
3901212
44446212
Stop Event
node limit
Counts
118 → 119

prune120.0ms (2.4%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1118119
Fresh000
Picked101
Done000
Total1128120
Error
0.0b
Counts
120 → 8
Alt Table
StatusErrorProgram
34.9b
(/.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 1) (*.f64 x x))
34.2b
(+.f64 (fma.f64 (sqrt.f64 (pow.f64 x -2)) (sqrt.f64 (pow.f64 x -2)) (neg.f64 (*.f64 (*.f64 (cos.f64 x) (pow.f64 x -2)) 1))) (fma.f64 (neg.f64 (*.f64 (cos.f64 x) (pow.f64 x -2))) 1 (*.f64 (*.f64 (cos.f64 x) (pow.f64 x -2)) 1)))
28.3b
1/2
17.4b
(/.f64 (/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x))) (*.f64 x x))
17.4b
(/.f64 (*.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (/.f64 1 (+.f64 1 (cos.f64 x)))) (*.f64 x x))
34.9b
(/.f64 (exp.f64 (log1p.f64 (neg.f64 (cos.f64 x)))) (*.f64 x x))
41.2b
(+.f64 (fma.f64 1 (pow.f64 x -2) (neg.f64 (*.f64 (cos.f64 x) (pow.f64 x -2)))) (fma.f64 (neg.f64 (sqrt.f64 (*.f64 (cos.f64 x) (pow.f64 x -2)))) (sqrt.f64 (*.f64 (cos.f64 x) (pow.f64 x -2))) (*.f64 (cos.f64 x) (pow.f64 x -2))))
33.6b
(pow.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x) 2)
Compiler

Compiled 3203 to 1862 computations (41.9% saved)

localize10.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x)))
0.2b
(*.f64 (sin.f64 x) (sin.f64 x))
0.4b
(+.f64 1 (cos.f64 x))
16.7b
(/.f64 (/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x))) (*.f64 x x))

series28.0ms (0.6%)

Counts
4 → 40
Calls

4 calls:

12.0ms
(/.f64 (/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x))) (*.f64 x x))
10.0ms
(/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x)))
4.0ms
(*.f64 (sin.f64 x) (sin.f64 x))
1.0ms
(+.f64 1 (cos.f64 x))

rewrite57.0ms (1.1%)

Algorithm
batch-egg-rewrite
Rules
456×prod-diff_binary64
195×expm1-udef_binary64
195×log1p-udef_binary64
145×egg-rr
114×add-sqr-sqrt_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01046
122930
2347430
Stop Event
node limit
Counts
4 → 145
Calls

4 calls:

55.0ms
(/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x)))
55.0ms
(*.f64 (sin.f64 x) (sin.f64 x))
55.0ms
(+.f64 1 (cos.f64 x))
55.0ms
(/.f64 (/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x))) (*.f64 x x))

simplify41.0ms (0.8%)

Algorithm
egg-herbie
Rules
920×times-frac_binary64
452×fma-neg_binary64
209×*-commutative_binary64
187×fma-def_binary64
167×distribute-rgt-neg-in_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
054564
1155556
2460496
31638496
44511496
Stop Event
node limit
Counts
185 → 179

prune124.0ms (2.4%)

Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New1763179
Fresh437
Picked101
Done000
Total1816187
Error
0b
Counts
187 → 6
Alt Table
StatusErrorProgram
28.3b
1/2
17.4b
(/.f64 (*.f64 (sin.f64 x) (*.f64 (sin.f64 x) (exp.f64 (neg.f64 (log1p.f64 (cos.f64 x)))))) (*.f64 x x))
17.5b
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
16.9b
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
34.9b
(/.f64 (exp.f64 (log1p.f64 (neg.f64 (cos.f64 x)))) (*.f64 x x))
33.6b
(pow.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x) 2)
Compiler

Compiled 3083 to 1672 computations (45.8% saved)

localize12.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(pow.f64 (sin.f64 x) 2)
0.3b
(*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2))
0.4b
(+.f64 1 (cos.f64 x))
16.3b
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))

series19.0ms (0.4%)

Counts
3 → 12
Calls

3 calls:

12.0ms
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
3.0ms
(*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2))
3.0ms
(pow.f64 (sin.f64 x) 2)

rewrite56.0ms (1.1%)

Algorithm
batch-egg-rewrite
Rules
519×log-prod_binary64
191×fma-def_binary64
184×expm1-udef_binary64
184×log1p-udef_binary64
166×log-pow_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01138
123330
2293830
Stop Event
node limit
Counts
3 → 117
Calls

3 calls:

49.0ms
(pow.f64 (sin.f64 x) 2)
49.0ms
(*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2))
49.0ms
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))

simplify29.0ms (0.6%)

Algorithm
egg-herbie
Rules
786×fma-def_binary64
649×cancel-sign-sub-inv_binary64
390×fma-neg_binary64
211×*-commutative_binary64
145×distribute-rgt-neg-in_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
042192
1121184
2355176
31276174
44863174
Stop Event
node limit
Counts
129 → 140

prune118.0ms (2.3%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1790179
Fresh055
Picked011
Done000
Total1796185
Error
0b
Counts
185 → 6
Alt Table
StatusErrorProgram
28.3b
1/2
17.4b
(/.f64 (*.f64 (sin.f64 x) (*.f64 (sin.f64 x) (exp.f64 (neg.f64 (log1p.f64 (cos.f64 x)))))) (*.f64 x x))
17.5b
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
16.9b
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
34.9b
(/.f64 (exp.f64 (log1p.f64 (neg.f64 (cos.f64 x)))) (*.f64 x x))
33.6b
(pow.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x) 2)
Compiler

Compiled 3247 to 1888 computations (41.9% saved)

localize11.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(*.f64 (sin.f64 x) (exp.f64 (neg.f64 (log1p.f64 (cos.f64 x)))))
0.2b
(*.f64 (sin.f64 x) (*.f64 (sin.f64 x) (exp.f64 (neg.f64 (log1p.f64 (cos.f64 x))))))
0.3b
(log1p.f64 (cos.f64 x))
16.7b
(/.f64 (*.f64 (sin.f64 x) (*.f64 (sin.f64 x) (exp.f64 (neg.f64 (log1p.f64 (cos.f64 x)))))) (*.f64 x x))

series554.0ms (10.9%)

Counts
4 → 48
Calls

4 calls:

150.0ms
(/.f64 (*.f64 (sin.f64 x) (*.f64 (sin.f64 x) (exp.f64 (neg.f64 (log1p.f64 (cos.f64 x)))))) (*.f64 x x))
135.0ms
(*.f64 (sin.f64 x) (*.f64 (sin.f64 x) (exp.f64 (neg.f64 (log1p.f64 (cos.f64 x))))))
134.0ms
(log1p.f64 (cos.f64 x))
134.0ms
(*.f64 (sin.f64 x) (exp.f64 (neg.f64 (log1p.f64 (cos.f64 x)))))

rewrite59.0ms (1.2%)

Algorithm
batch-egg-rewrite
Rules
644×log-prod_binary64
189×expm1-udef_binary64
189×log1p-udef_binary64
175×log-pow_binary64
143×log-div_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01163
122949
2326539
Stop Event
node limit
Counts
4 → 132
Calls

4 calls:

57.0ms
(*.f64 (sin.f64 x) (exp.f64 (neg.f64 (log1p.f64 (cos.f64 x)))))
57.0ms
(*.f64 (sin.f64 x) (*.f64 (sin.f64 x) (exp.f64 (neg.f64 (log1p.f64 (cos.f64 x))))))
57.0ms
(log1p.f64 (cos.f64 x))
57.0ms
(/.f64 (*.f64 (sin.f64 x) (*.f64 (sin.f64 x) (exp.f64 (neg.f64 (log1p.f64 (cos.f64 x)))))) (*.f64 x x))

simplify43.0ms (0.8%)

Algorithm
egg-herbie
Rules
672×fma-neg_binary64
478×times-frac_binary64
313×fma-def_binary64
305×distribute-rgt-neg-in_binary64
290×distribute-lft-neg-in_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
077956
1224714
2704634
32618546
Stop Event
node limit
Counts
180 → 171

prune117.0ms (2.3%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New1692171
Fresh224
Picked011
Done011
Total1716177
Error
0b
Counts
177 → 6
Alt Table
StatusErrorProgram
16.5b
(pow.f64 (/.f64 (sqrt.f64 (*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2)))) x) 2)
17.5b
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
17.4b
(/.f64 (*.f64 (sin.f64 x) (*.f64 (sin.f64 x) (exp.f64 (neg.f64 (log1p.f64 (cos.f64 x)))))) (*.f64 x x))
16.9b
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
0.1b
(*.f64 (/.f64 (sin.f64 x) x) (/.f64 (tan.f64 (*.f64 1/2 x)) x))
34.9b
(/.f64 (exp.f64 (log1p.f64 (neg.f64 (cos.f64 x)))) (*.f64 x x))
Compiler

Compiled 3150 to 1841 computations (41.6% saved)

regimes303.0ms (6%)

Accuracy

Total 0.1b remaining (84.5%)

Threshold costs 0.1b (84.5%)

Counts
117 → 1
Compiler

Compiled 4311 to 2914 computations (32.4% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0917
11117
Stop Event
saturated

end88.0ms (1.7%)

Compiler

Compiled 101 to 70 computations (30.7% saved)

Profiling

Loading profile data...