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
2a1e3e29
Kaydet (Commit)
2a1e3e29
authored
Kas 21, 2010
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #7770: Note the useful range of sin/cos in the decimal module examples.
üst
a491ceda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
decimal.rst
Doc/library/decimal.rst
+6
-0
No files found.
Doc/library/decimal.rst
Dosyayı görüntüle @
2a1e3e29
...
@@ -1717,6 +1717,9 @@ to work with the :class:`Decimal` class::
...
@@ -1717,6 +1717,9 @@ to work with the :class:`Decimal` class::
def cos(x):
def cos(x):
"""Return the cosine of x as measured in radians.
"""Return the cosine of x as measured in radians.
The taylor series approximation works best for a small value of x.
For larger values, first compute x = x % (2 * pi).
>>> print(cos(Decimal('0.5')))
>>> print(cos(Decimal('0.5')))
0.8775825618903727161162815826
0.8775825618903727161162815826
>>> print(cos(0.5))
>>> print(cos(0.5))
...
@@ -1740,6 +1743,9 @@ to work with the :class:`Decimal` class::
...
@@ -1740,6 +1743,9 @@ to work with the :class:`Decimal` class::
def sin(x):
def sin(x):
"""Return the sine of x as measured in radians.
"""Return the sine of x as measured in radians.
The taylor series approximation works best for a small value of x.
For larger values, first compute x = x % (2 * pi).
>>> print(sin(Decimal('0.5')))
>>> print(sin(Decimal('0.5')))
0.4794255386042030002732879352
0.4794255386042030002732879352
>>> print(sin(0.5))
>>> print(sin(0.5))
...
...
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