Details

Time bar (total: 6.7s)

analyze348.0ms (5.2%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%50%50%2
0%50%50%3
0%50%50%4
12.5%37.5%50%5
15.6%31.2%53.2%6
17.2%25%57.9%7
18%20.3%61.8%8
18.3%16.4%65.3%9
18.5%13.7%67.8%10
18.6%11.5%69.9%11
18.7%10%71.3%12
18.7%8.9%72.4%13
18.7%8.2%73.1%14
Compiler

Compiled 19 to 16 computations (15.8% saved)

sample3.2s (47.5%)

Results
1.3s8256×body128valid
1.1s1390×body1024invalid
385.0ms679×body512invalid
170.0ms1118×body128invalid
117.0ms350×body256invalid
Compiler

Compiled 56 to 47 computations (16.1% saved)

simplify21.0ms (0.3%)

Algorithm
egg-herbie
Rules
664×associate-/l*_binary64
544×associate-/r*_binary64
257×associate-*l/_binary64
214×unswap-sqr_binary64
214×div-sub_binary64
Iterations

Useful iterations: 5 (0.0ms)

IterNodesCost
01425
13222
26822
314022
435422
595820
6218720
Stop Event
node limit
Counts
1 → 2

prune4.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.4b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.5b
(*.f64 (/.f64 1 (sqrt.f64 k)) (pow.f64 (*.f64 (*.f64 2 (PI.f64)) n) (/.f64 (-.f64 1 k) 2)))
0.4b
(/.f64 (pow.f64 (*.f64 2 (*.f64 (PI.f64) n)) (fma.f64 k -1/2 1/2)) (sqrt.f64 k))
Compiler

Compiled 97 to 77 computations (20.6% saved)

localize9.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.2b
(*.f64 (PI.f64) n)
0.2b
(/.f64 (pow.f64 (*.f64 2 (*.f64 (PI.f64) n)) (fma.f64 k -1/2 1/2)) (sqrt.f64 k))
0.3b
(pow.f64 (*.f64 2 (*.f64 (PI.f64) n)) (fma.f64 k -1/2 1/2))

series476.0ms (7.1%)

Counts
3 → 48
Calls

3 calls:

262.0ms
(/.f64 (pow.f64 (*.f64 2 (*.f64 (PI.f64) n)) (fma.f64 k -1/2 1/2)) (sqrt.f64 k))
212.0ms
(pow.f64 (*.f64 2 (*.f64 (PI.f64) n)) (fma.f64 k -1/2 1/2))
2.0ms
(*.f64 (PI.f64) n)

rewrite53.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
655×log-prod_binary64
233×expm1-udef_binary64
233×log1p-udef_binary64
222×log-pow_binary64
132×add-sqr-sqrt_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01340
127440
2331940
Stop Event
node limit
Counts
3 → 82
Calls

3 calls:

51.0ms
(*.f64 (PI.f64) n)
51.0ms
(/.f64 (pow.f64 (*.f64 2 (*.f64 (PI.f64) n)) (fma.f64 k -1/2 1/2)) (sqrt.f64 k))
51.0ms
(pow.f64 (*.f64 2 (*.f64 (PI.f64) n)) (fma.f64 k -1/2 1/2))

simplify50.0ms (0.8%)

Algorithm
egg-herbie
Rules
570×fma-neg_binary64
433×associate-*r*_binary64
373×associate-*l*_binary64
176×distribute-rgt-in_binary64
172×distribute-lft-in_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0671144
1183984
2587828
33443826
Stop Event
node limit
Counts
130 → 99

prune120.0ms (1.8%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New92799
Fresh101
Picked101
Done000
Total947101
Error
0.0b
Counts
101 → 7
Alt Table
StatusErrorProgram
21.8b
(/.f64 (-.f64 (+.f64 (*.f64 (sqrt.f64 (*.f64 n (PI.f64))) (sqrt.f64 2)) (*.f64 1/8 (*.f64 (*.f64 (pow.f64 k 2) (*.f64 (pow.f64 (log.f64 (*.f64 2 (*.f64 n (PI.f64)))) 2) (sqrt.f64 2))) (sqrt.f64 (*.f64 n (PI.f64)))))) (*.f64 1/2 (*.f64 (*.f64 k (*.f64 (log.f64 (*.f64 2 (*.f64 n (PI.f64)))) (sqrt.f64 2))) (sqrt.f64 (*.f64 n (PI.f64)))))) (sqrt.f64 k))
0.5b
(pow.f64 (/.f64 (sqrt.f64 k) (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2))) -1)
0.4b
(*.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2)) (pow.f64 k -1/2))
0.5b
(/.f64 (*.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (*.f64 k -1/2)) (sqrt.f64 (*.f64 n (*.f64 2 (PI.f64))))) (sqrt.f64 k))
0.9b
(/.f64 (*.f64 (pow.f64 (*.f64 2 (PI.f64)) (fma.f64 k -1/2 1/2)) (pow.f64 n (fma.f64 k -1/2 1/2))) (sqrt.f64 k))
0.9b
(*.f64 (/.f64 (sqrt.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2))) (cbrt.f64 k)) (/.f64 (sqrt.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2))) (cbrt.f64 (sqrt.f64 k))))
0.4b
(*.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2)) (sqrt.f64 (/.f64 1 k)))
Compiler

Compiled 2455 to 1676 computations (31.7% saved)

localize13.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(sqrt.f64 (/.f64 1 k))
0.2b
(*.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2)) (sqrt.f64 (/.f64 1 k)))
0.2b
(*.f64 n (*.f64 2 (PI.f64)))
0.3b
(pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2))

series449.0ms (6.7%)

Counts
4 → 48
Calls

4 calls:

222.0ms
(pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2))
220.0ms
(*.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2)) (sqrt.f64 (/.f64 1 k)))
4.0ms
(sqrt.f64 (/.f64 1 k))
3.0ms
(*.f64 n (*.f64 2 (PI.f64)))

rewrite57.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
682×log-prod_binary64
249×expm1-udef_binary64
249×log1p-udef_binary64
239×log-pow_binary64
144×add-sqr-sqrt_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01552
130847
2351347
Stop Event
node limit
Counts
4 → 93
Calls

4 calls:

55.0ms
(sqrt.f64 (/.f64 1 k))
55.0ms
(*.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2)) (sqrt.f64 (/.f64 1 k)))
55.0ms
(*.f64 n (*.f64 2 (PI.f64)))
55.0ms
(pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2))

simplify44.0ms (0.7%)

Algorithm
egg-herbie
Rules
570×fma-neg_binary64
433×associate-*r*_binary64
373×associate-*l*_binary64
176×distribute-rgt-in_binary64
172×distribute-lft-in_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0671180
11831020
2587864
33443862
Stop Event
node limit
Counts
141 → 111

prune135.0ms (2%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1092111
Fresh156
Picked101
Done000
Total1117118
Error
0.0b
Counts
118 → 7
Alt Table
StatusErrorProgram
21.8b
(*.f64 (-.f64 (+.f64 (*.f64 (sqrt.f64 (*.f64 n (PI.f64))) (sqrt.f64 2)) (*.f64 1/8 (*.f64 (*.f64 (pow.f64 k 2) (*.f64 (pow.f64 (log.f64 (*.f64 2 (*.f64 n (PI.f64)))) 2) (sqrt.f64 2))) (sqrt.f64 (*.f64 n (PI.f64)))))) (*.f64 1/2 (*.f64 (*.f64 k (*.f64 (log.f64 (*.f64 2 (*.f64 n (PI.f64)))) (sqrt.f64 2))) (sqrt.f64 (*.f64 n (PI.f64)))))) (sqrt.f64 (/.f64 1 k)))
0.5b
(*.f64 (*.f64 (pow.f64 (*.f64 (PI.f64) (*.f64 n 2)) (*.f64 k -1/2)) (sqrt.f64 (*.f64 (PI.f64) (*.f64 n 2)))) (sqrt.f64 (/.f64 1 k)))
0.5b
(pow.f64 (/.f64 (sqrt.f64 k) (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2))) -1)
0.4b
(*.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2)) (pow.f64 k -1/2))
0.5b
(/.f64 (*.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (*.f64 k -1/2)) (sqrt.f64 (*.f64 n (*.f64 2 (PI.f64))))) (sqrt.f64 k))
0.9b
(/.f64 (*.f64 (pow.f64 (*.f64 2 (PI.f64)) (fma.f64 k -1/2 1/2)) (pow.f64 n (fma.f64 k -1/2 1/2))) (sqrt.f64 k))
0.9b
(*.f64 (/.f64 (sqrt.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2))) (cbrt.f64 k)) (/.f64 (sqrt.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2))) (cbrt.f64 (sqrt.f64 k))))
Compiler

Compiled 2683 to 1985 computations (26% saved)

localize11.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.2b
(*.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2)) (pow.f64 k -1/2))
0.2b
(*.f64 n (*.f64 2 (PI.f64)))
0.3b
(pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2))

series253.0ms (3.8%)

Counts
1 → 12
Calls

1 calls:

253.0ms
(*.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2)) (pow.f64 k -1/2))

rewrite41.0ms (0.6%)

Algorithm
batch-egg-rewrite
Rules
641×log-prod_binary64
232×expm1-udef_binary64
232×log1p-udef_binary64
221×log-pow_binary64
133×add-sqr-sqrt_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01321
127421
2321221
Stop Event
node limit
Counts
1 → 18
Calls

1 calls:

41.0ms
(*.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2)) (pow.f64 k -1/2))

simplify28.0ms (0.4%)

Algorithm
egg-herbie
Rules
511×exp-sum_binary64
353×unsub-neg_binary64
342×exp-prod_binary64
227×distribute-rgt-in_binary64
224×distribute-lft-in_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
034372
172372
2162276
3571276
42704276
Stop Event
node limit
Counts
30 → 22

prune94.0ms (1.4%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New78078
Fresh066
Picked011
Done000
Total78785
Error
0.0b
Counts
85 → 7
Alt Table
StatusErrorProgram
21.8b
(*.f64 (-.f64 (+.f64 (*.f64 (sqrt.f64 (*.f64 n (PI.f64))) (sqrt.f64 2)) (*.f64 1/8 (*.f64 (*.f64 (pow.f64 k 2) (*.f64 (pow.f64 (log.f64 (*.f64 2 (*.f64 n (PI.f64)))) 2) (sqrt.f64 2))) (sqrt.f64 (*.f64 n (PI.f64)))))) (*.f64 1/2 (*.f64 (*.f64 k (*.f64 (log.f64 (*.f64 2 (*.f64 n (PI.f64)))) (sqrt.f64 2))) (sqrt.f64 (*.f64 n (PI.f64)))))) (sqrt.f64 (/.f64 1 k)))
0.5b
(*.f64 (*.f64 (pow.f64 (*.f64 (PI.f64) (*.f64 n 2)) (*.f64 k -1/2)) (sqrt.f64 (*.f64 (PI.f64) (*.f64 n 2)))) (sqrt.f64 (/.f64 1 k)))
0.5b
(pow.f64 (/.f64 (sqrt.f64 k) (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2))) -1)
0.4b
(*.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2)) (pow.f64 k -1/2))
0.5b
(/.f64 (*.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (*.f64 k -1/2)) (sqrt.f64 (*.f64 n (*.f64 2 (PI.f64))))) (sqrt.f64 k))
0.9b
(/.f64 (*.f64 (pow.f64 (*.f64 2 (PI.f64)) (fma.f64 k -1/2 1/2)) (pow.f64 n (fma.f64 k -1/2 1/2))) (sqrt.f64 k))
0.9b
(*.f64 (/.f64 (sqrt.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2))) (cbrt.f64 k)) (/.f64 (sqrt.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2))) (cbrt.f64 (sqrt.f64 k))))
Compiler

Compiled 2046 to 1502 computations (26.6% saved)

localize11.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(sqrt.f64 (/.f64 1 k))
0.2b
(*.f64 (*.f64 (pow.f64 (*.f64 (PI.f64) (*.f64 n 2)) (*.f64 k -1/2)) (sqrt.f64 (*.f64 (PI.f64) (*.f64 n 2)))) (sqrt.f64 (/.f64 1 k)))
0.2b
(*.f64 (PI.f64) (*.f64 n 2))
0.4b
(sqrt.f64 (*.f64 (PI.f64) (*.f64 n 2)))

series63.0ms (0.9%)

Counts
3 → 12
Calls

3 calls:

52.0ms
(*.f64 (*.f64 (pow.f64 (*.f64 (PI.f64) (*.f64 n 2)) (*.f64 k -1/2)) (sqrt.f64 (*.f64 (PI.f64) (*.f64 n 2)))) (sqrt.f64 (/.f64 1 k)))
9.0ms
(sqrt.f64 (*.f64 (PI.f64) (*.f64 n 2)))
3.0ms
(*.f64 (PI.f64) (*.f64 n 2))

rewrite55.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
272×expm1-udef_binary64
272×log1p-udef_binary64
156×add-sqr-sqrt_binary64
147×log1p-expm1-u_binary64
147×expm1-log1p-u_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01652
133240
2397938
Stop Event
node limit
Counts
3 → 59
Calls

3 calls:

54.0ms
(*.f64 (*.f64 (pow.f64 (*.f64 (PI.f64) (*.f64 n 2)) (*.f64 k -1/2)) (sqrt.f64 (*.f64 (PI.f64) (*.f64 n 2)))) (sqrt.f64 (/.f64 1 k)))
54.0ms
(*.f64 (PI.f64) (*.f64 n 2))
54.0ms
(sqrt.f64 (*.f64 (PI.f64) (*.f64 n 2)))

simplify9.0ms (0.1%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
associate-*r*_binary64
associate-*l*_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0696
11096
21796
31996
Stop Event
saturated
Counts
71 → 61

prune142.0ms (2.1%)

Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New1101111
Fresh055
Picked011
Done011
Total1108118
Error
0b
Counts
118 → 8
Alt Table
StatusErrorProgram
21.8b
(*.f64 (-.f64 (+.f64 (*.f64 (sqrt.f64 (*.f64 n (PI.f64))) (sqrt.f64 2)) (*.f64 1/8 (*.f64 (*.f64 (pow.f64 k 2) (*.f64 (pow.f64 (log.f64 (*.f64 2 (*.f64 n (PI.f64)))) 2) (sqrt.f64 2))) (sqrt.f64 (*.f64 n (PI.f64)))))) (*.f64 1/2 (*.f64 (*.f64 k (*.f64 (log.f64 (*.f64 2 (*.f64 n (PI.f64)))) (sqrt.f64 2))) (sqrt.f64 (*.f64 n (PI.f64)))))) (sqrt.f64 (/.f64 1 k)))
0.5b
(*.f64 (*.f64 (pow.f64 (*.f64 (PI.f64) (*.f64 n 2)) (*.f64 k -1/2)) (sqrt.f64 (*.f64 (PI.f64) (*.f64 n 2)))) (sqrt.f64 (/.f64 1 k)))
0.5b
(pow.f64 (/.f64 (sqrt.f64 k) (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2))) -1)
0.4b
(*.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2)) (pow.f64 k -1/2))
0.5b
(/.f64 (*.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (*.f64 k -1/2)) (sqrt.f64 (*.f64 n (*.f64 2 (PI.f64))))) (sqrt.f64 k))
0.9b
(/.f64 (*.f64 (pow.f64 (*.f64 2 (PI.f64)) (fma.f64 k -1/2 1/2)) (pow.f64 n (fma.f64 k -1/2 1/2))) (sqrt.f64 k))
3.4b
(*.f64 (*.f64 (pow.f64 (*.f64 (PI.f64) (*.f64 n 2)) (*.f64 k -1/2)) (sqrt.f64 (*.f64 (PI.f64) (*.f64 n 2)))) (expm1.f64 (log1p.f64 (pow.f64 k -1/2))))
0.9b
(*.f64 (/.f64 (sqrt.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2))) (cbrt.f64 k)) (/.f64 (sqrt.f64 (pow.f64 (*.f64 n (*.f64 2 (PI.f64))) (fma.f64 k -1/2 1/2))) (cbrt.f64 (sqrt.f64 k))))
Compiler

Compiled 2759 to 2028 computations (26.5% saved)

regimes864.0ms (12.9%)

Accuracy

Total 0.4b remaining (90.9%)

Threshold costs 0.4b (90.9%)

Counts
181 → 1
Compiler

Compiled 16078 to 13002 computations (19.1% saved)

simplify5.0ms (0.1%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
1-exp_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01936
12836
Stop Event
saturated

end158.0ms (2.4%)

Compiler

Compiled 257 to 197 computations (23.3% saved)

Profiling

Loading profile data...