From: Dan on 30 Nov 2009 19:48 I am stuck on a problem where i need to combine newton’s method and the composite trapezoid rule. I’m not the best at matlab and can’t figure this thing out. Integral 0 to x of (1/(sqrt(2*pi)))*(exp((-t^2)/2)) dt = 0.45 The question: Find a solution x to within 10^-5 by combining newton’s method (with po = 0.5) and the composite trapezoid rule. Any ideas on how to even start this would be much appreciated. Thanks
From: TideMan on 30 Nov 2009 22:21 On Dec 1, 1:48 pm, "Dan " <dscottz...(a)aol.com> wrote: > I am stuck on a problem where i need to combine newton’s method and the composite trapezoid rule. I’m not the best at matlab and can’t figure this thing out. > > Integral 0 to x of (1/(sqrt(2*pi)))*(exp((-t^2)/2)) dt = 0.45 > > The question: Find a solution x to within 10^-5 by combining newton’s method (with po = 0.5) and the composite trapezoid rule. > > Any ideas on how to even start this would be much appreciated. Thanks Step 1. Sit down and read your lecture notes and the appropriate text book. Step 2. Write down the algorithm Step 3. Code it up in Matlab Step 4. If you have problems with making the Matlab code work, ask here. But not until you have carried out Steps 1 to 3.
From: Torsten Hennig on 1 Dec 2009 17:57 > I am stuck on a problem where i need to combine > newton's method and the composite trapezoid > rule. I'm not the best at matlab and > can't figure this thing out. > > Integral 0 to x of (1/(sqrt(2*pi)))*(exp((-t^2)/2)) > dt = 0.45 > > The question: Find a solution x to within 10^-5 by > combining newton's method (with po = 0.5) and > the composite trapezoid rule. > > Any ideas on how to even start this would be much > appreciated. Thanks Find the zero of f(x) = Integral 0 to x of (1/(sqrt(2*pi)))*(exp((-t^2)/2)) dt - 0.45 by applying Newton's method : x_(n+1)-x_n = -f(x_n)/f'(x_n) Calculation of f'(x_n) is easy ; to evaluate f(x_n), you will have to use a numerical approximation method for Integral 0 to x_n of (1/(sqrt(2*pi)))*(exp((-t^2)/2)) dt (e.g. the composite trapezoid rule). Best wishes Torsten.
|
Pages: 1 Prev: Why is MOVEFILE so slow? Next: Error loading Jogl native library in MATLAB 7.7 |