4 ms·
for all functions, f(x) = f(0) + f'(0) * x for x very close to 0
by cdancette 9y ago
for all functions, f(x) = f(0) + f'(0) * x for x very close to 0
- Smaug123 9y agoThis is a specific instance of what LolWolf just said in the grandparent.
- dekhn 9y agoyeah I didn't know that part, just the more specific one.
- jjaredsimpson 9y agoIt's the first term of the Maclaurin series sin(x) = sin(0) + cos(1)x = 0 + x
- btilly 9y agoThe approximation is particularly good for sin(x) because the next term in the Taylor series, f''(0) * x^2 / 2, happens to be 0. So the error is O(x^3) rather than the more common O(x^2).