def cos(x):
"""Return the cosine of x as measured in radians.
- The taylor series approximation works best for a small value of x.
+ 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')))
def sin(x):
"""Return the sine of x as measured in radians.
- The taylor series approximation works best for a small value of x.
+ 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')))