VPL (Virtual Programming Lab)
- PYTHON
---- PYTHON ------
Create a function called sine that calculates the sine of an
angle in radians using the polynomial approximation technique using
Taylor's theorem. The function must have the following
parameters:
1. Angle in Radians - Angle value in radians whose sine will be
calculated.
2. Polynomial degree - This parameter specifies the degree of the
polynomial that approximates the sine as shown above. The default
value is 5.
The function should return the approximate sine
value.