alternative calculation for sin(x) [resolved]
I have been given an excercise when I have to work out the sin value for x without using the inbuilt one. I was given this function:
sin(x) ~= x- x3/3! + x5/5!
The further on you keep going the more accurate the thing becomes. I was also told that x should be in radians.
Now, I couldn't get this thing working. I have 360 degrees, where I know sin(36) = 0. 360 degrees is roughly 6.28 radians. This gives:
6.28 - 248/24 + 9768/120
=6.28 - 10.32 + 81.4
=77.36
Now that's just WAY off.
Am I somehow using the formula badly or was I given an incorrect one? If it was the wrong one, does anyone know what we were most likely meant to be given?