homework5solns - Homework set 5 solutions 1. The condition...

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

View Full Document Right Arrow Icon
1. The condition of convergence on successive substitution is that the derivative |dF/dx| <1. This means that equation (2) must be used because at x=0 the derivative is 0, while for equation 1 the derivative is 2. F 1 x x = 0 = 2cos(0) = 2 F 2 x x = 0 = 2 2cos(0) = 0 (it is important that you know that ONLY equation (2) will work with this method because the condition for convergence is that the magnitude (absolute value) of the derivative must be less than 1). now to do successive substitution choose a number for x 1 and use it in the right side of equation (2) to get the new x value (x 2 ), then repeat to get x 3 until the value of x n and x n +1 is with in the convergence criteria. x1=0.5 x2 = 2*(0.5)-2*sin(0.5)-0.02 = 0.0211489228 x3 = 2*(0.0211489228)-2*sin(0.0211489228)-0.02=-0.0199968469 x4 = 2*(-0.0199968469)-2*sin(-0.0199968469)-0.02 etc. 2. Option Explicit Private x As Double, xOld As Double, tooBig As Double, crit As Double Function f(x) As Double f = 2 * x - 2 * Sin(x) - 0.02
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.

Page1 / 4

homework5solns - Homework set 5 solutions 1. The condition...

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