winter06answers

Winter06answers - 1 A 2)A 3)B 4)B 5)B(since only works if array is sorted you should ask for a clarification during an exam though about this as it

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1) A 2)A 3)B 4)B 5)B (since only works if array is sorted. you should ask for a clarification during an exam though about this as it is unclear) 6)C 7)A 8)B (sometimes fails to converge if initial guess is too far from actual root) 9)E 10) we didn't discuss this although true 11)E (note that you don't have to do any calculation to get this (other than simple divisions--i.e. knowing that the midpoint of 2 and 4 is 3). Also note that in general on these type of problems, it is enough to figure out whether your next guess is positive or negative rather than calculating the exact value. For example, if at one step you have your lower guess is 2 and your upper guess is 3. You then make middle =2.5 and want to figure out what your next guess will be after that. All you ahve to do is figure out whether f(2.5) is < 0 or >0. You don't need to find out the exact value. 12)D 13)C 14)C 15) A 16) C 17) B we need to calculate f(.25) f(.75) f(1.25) f(1.75) f(.25) = sin( pi/2) + 1 = 1 f(.75) = sin(1.5 pi) + 1 = 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/15/2010 for the course COMP COMP 206 taught by Professor Vybihal during the Spring '04 term at McGill.

Page1 / 3

Winter06answers - 1 A 2)A 3)B 4)B 5)B(since only works if array is sorted you should ask for a clarification during an exam though about this as it

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online