ma2214kse1 - Key to QuickCheck Exercises #1 1. (a)...

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

View Full Document Right Arrow Icon
1. (a) Solutions of x^3 - 6x^2+11x-6 =0. Using Matlab's "roots" facility: >> roots([1 -6 11 -6]) ans = 3.000, 2.000, 1.000 . (b) We use Newton's method starting at x_0=1. Note that it is not necessary to index the successive iterates in MATLAB. >> x=1; >> x=x-(x^3-6*x^2+11*x-5)/(3*x^2-12*x+11) x = 0.5000 >> x=x-(x^3-6*x^2+11*x-5)/(3*x^2-12*x+11) x = 0.6522 >> x=x-(x^3-6*x^2+11*x-5)/(3*x^2-12*x+11) x = 0.6748 >> x=x-(x^3-6*x^2+11*x-5)/(3*x^2-12*x+11) x = 0.6753 >> x=x-(x^3-6*x^2+11*x-5)/(3*x^2-12*x+11) x = 0.6753 At this point we stop because we have two successive iterates which agree to four decimal places. 2. The first works; the others do not. The reason is that the derivative of the right hand side in the first case, i.e., -(3*x^2-12*x)/11, is less than 1 near x=1 whereas that is not true for the right hand sides of ii) and iii). 3. Newton's method for solving for y in terms of x takes the form y_{k+1} = y_k - (y_k^4 + x*y_k + x^2 - 1)/(4*y_k^3 + x). We take x = .1, y_0 = 1. Thus
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/23/2012 for the course MATH 4254 taught by Professor Robinson during the Spring '10 term at Virginia Tech.

Page1 / 3

ma2214kse1 - Key to QuickCheck Exercises #1 1. (a)...

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