
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

AMSC/CMSC 460 Quiz 7 , Fall 2007
F (x) =
โซ (^) x
0
g(t)dt = 5.
You may assume that there is a Matlab function g.m that evaluates g(t), that F (1) < 5 and that F (2) > 5. Recall that fzero finds a point x so that f (x) = 0. It takes two arguments: the first defines the function f and the second is a vector of length 2 where f evaluated at the first component differs in sign from f evaluated at the second.
Answer:
x = fzero(@F,[1,2]);
function y = F(x) y = quad(@g,0,x) - 5;
using a starting guess of x 1 = 1/2, x 2 = ฯ/4. Your answer should be either two numbers (the values of x 1 and x 2 after the iteration), or computable formulas that Matlab could use to get these numbers. (Recall that cos(ฯ/4) = sin(ฯ/4) =
Answer: The Jacobian matrix is
J(x) =
2 x 1 2 x 2 0 โ sin(x 2 )
Therefore, one step of Newtonโs method computes
x โ x โ J(x)\
x^21 + x^22 โ 1 cos(x 2 )
or
x โ
ฯ/ 4
1 ฯ/ 2 0 โ
1 /4 + (โฯ/2)^2 โ 1 2 / 2