Lines Matching defs:sum
159 Lanczos sum as a rational function, and compute it that way. The
240 /* Lanczos' sum L_g(x), for positive x */
353 /* compute error in sum */
1342 enhanced with the exact partials sum and roundoff from Mark
1351 therefore, sum([1e+308, 1e-308, 1e+308]) returns 1e+308 while
1352 sum([1e+308, 1e+308, 1e-308]) raises an OverflowError due to the
1353 overflow of the first partial sum.
1369 Note 5: The signature of math.fsum() differs from builtins.sum()
1372 returning a result, sum(seq2, start=sum(seq1)) may not equal the
1373 accurate result returned by sum(itertools.chain(seq1, seq2)).
1442 Return an accurate floating point sum of values in the iterable seq.
1451 PyObject *item, *iter, *sum = NULL;
1519 sum = PyFloat_FromDouble(special_sum);
1526 /* sum_exact(ps, hi) from the top, stop when the sum becomes
1539 Needed so that sum([1e-16, 1, 1e16]) will round-up the last
1552 sum = PyFloat_FromDouble(hi);
1558 return sum;
2463 sqrt(sum(x ** 2 for x in vec))
2488 net zero effect on the final sum. Since *csum* will be greater than
2520 correctly rounded square root of a correctly rounded sum of
2525 rounded square root, and the accurately computed sum of squares.
2668 sqrt(sum((px - qx) ** 2.0 for px, qx in zip(p, q)))
2800 sqrt(sum(x**2 for x in coordinates))\n\