Friday, 18 September 2015

nerdamer Single variable Talyor Series Sept 18 2015

Single variable Taylor series expansion is a straight forward method.
f(a)+\frac {f'(a)}{1!} (x-a)+ \frac{f''(a)}{2!} (x-a)^2+\frac{f'''(a)}{3!}(x-a)^3+ \cdots.
The code:

Starting at 1. It takes a function f and takes the derivative and evaluates it at point a. Then it divides it by a factorial. Then it moves on to the next term and so on...

The applications:

Approximating solution of hard integrals:

Solving ODEs

No comments:

Post a Comment