Unformatted text preview: computer, as rounding errors can build up to become quite large. One well known example relates to the golden ratio, φ . This number is: 61803398 . 2 1 5 = − = φ The number has the useful property that: (2) (1) 1 2 1 − − − − = = n n n n n Thus, successive powers of φ can be conveniently calculated using either expression (1) or (2). Starting with φ = 1 and φ 1 defined above, write an R program that fills an array with successive powers of φ using expression (1) and another array using expression (2). Plot both sets of results for φ n = 1. .80 . Which one appears more accurate? Why?...
View
Full
Document
This note was uploaded on 12/26/2011 for the course BIO 615 taught by Professor Abecasis during the Fall '10 term at University of Michigan.
 Fall '10
 Abecasis

Click to edit the document details