Index: Doc/library/decimal.rst =================================================================== --- Doc/library/decimal.rst (revision 77721) +++ Doc/library/decimal.rst (working copy) @@ -1776,13 +1776,10 @@ >>> print cos(Decimal('0.5')) 0.8775825618903727161162815826 - >>> print cos(0.5) - 0.87758256189 - >>> print cos(0.5+0j) - (0.87758256189+0j) """ getcontext().prec += 2 + x = x.remainder_near(2*pi()) i, lasts, s, fact, num, sign = 0, 0, 1, 1, 1, 1 while s != lasts: lasts = s @@ -1799,13 +1796,10 @@ >>> print sin(Decimal('0.5')) 0.4794255386042030002732879352 - >>> print sin(0.5) - 0.479425538604 - >>> print sin(0.5+0j) - (0.479425538604+0j) """ getcontext().prec += 2 + x = x.remainder_near(2*pi()) i, lasts, s, fact, num, sign = 1, 0, x, 1, x, 1 while s != lasts: lasts = s