We want to find roots of a differentiable function \(f(x)\), i.e. Reading this might be a bit confusing I strongly advise you to run the algorithm on a sheet of paper, step by step.Įxample: Create the first 10 Fibonacci numbers 1,1,2,3,5,8,13,21,34,55 temp = 1 (because b = 1), the previous result a = 1 is assigned to b and finally, a = 1 + 1. The previous result, a = 0 + 1 is now assigned to b, so b = 1. What happens if we want the 3rd Fibonacci number? At i = 1 we have first a = 0 and b = 1, then temp = 1, b = 0 and a = 0 + 1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |