@alcinnz Okay, looking at it more closely? That's definitely Horner's evaluation method, implementing a Taylor series expansion: https://en.wikipedia.org/wiki/Taylor_series
I recommend trying to solve this problem yourself, though, rather than looking at Wikipedia. It's a simple, fun piece of mathematics – and as with all mathematics, you can only discover it once:
Using algebra, find the polynomials f(x) where f(0)=sin(0). Then, add the condition f'(0)=sin'(0), and f''(0)=sin''(0), and the third derivative….
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.