Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
ff3fdce0
Kaydet (Commit)
ff3fdce0
authored
Tem 30, 2008
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace math.sum with math.fsum in a couple of comments
that were missed by r65308
üst
fef6b13c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mathmodule.c
Modules/mathmodule.c
+2
-2
No files found.
Modules/mathmodule.c
Dosyayı görüntüle @
ff3fdce0
...
@@ -341,7 +341,7 @@ FUNC1(tanh, tanh, 0,
...
@@ -341,7 +341,7 @@ FUNC1(tanh, tanh, 0,
Note 4: A similar implementation is in Modules/cmathmodule.c.
Note 4: A similar implementation is in Modules/cmathmodule.c.
Be sure to update both when making changes.
Be sure to update both when making changes.
Note 5: The signature of math.sum() differs from __builtin__.sum()
Note 5: The signature of math.
f
sum() differs from __builtin__.sum()
because the start argument doesn't make sense in the context of
because the start argument doesn't make sense in the context of
accurate summation. Since the partials table is collapsed before
accurate summation. Since the partials table is collapsed before
returning a result, sum(seq2, start=sum(seq1)) may not equal the
returning a result, sum(seq2, start=sum(seq1)) may not equal the
...
@@ -506,7 +506,7 @@ math_fsum(PyObject *self, PyObject *seq)
...
@@ -506,7 +506,7 @@ math_fsum(PyObject *self, PyObject *seq)
Needed so that sum([1e-16, 1, 1e16]) will round-up the last
Needed so that sum([1e-16, 1, 1e16]) will round-up the last
digit to two instead of down to zero (the 1e-16 makes the 1
digit to two instead of down to zero (the 1e-16 makes the 1
slightly closer to two). With a potential 1 ULP rounding
slightly closer to two). With a potential 1 ULP rounding
error fixed-up, math.sum() can guarantee commutativity. */
error fixed-up, math.
f
sum() can guarantee commutativity. */
if
(
n
>
0
&&
((
lo
<
0
.
0
&&
p
[
n
-
1
]
<
0
.
0
)
||
if
(
n
>
0
&&
((
lo
<
0
.
0
&&
p
[
n
-
1
]
<
0
.
0
)
||
(
lo
>
0
.
0
&&
p
[
n
-
1
]
>
0
.
0
)))
{
(
lo
>
0
.
0
&&
p
[
n
-
1
]
>
0
.
0
)))
{
y
=
lo
*
2
.
0
;
y
=
lo
*
2
.
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment