Algorithms |
Premise: What is an algorithm?
Iteration
Let's examine some interesting mathematical algorithms that lend themselves to iterative implementation.
`pi = 4 sum_{n=0}^{oo} (-1)^n/{2n+1} = 4(1-1/3+1/5-1/7+...)`
`sin x=sum_{n=0}^{oo}(-1)^n x^{2n+1}/{(2n+1)!}= x-x^3/{3!}+x^5/{5!}-x^7/{7!}+...`