Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Newton Method Code Math Lab

1 visualización (últimos 30 días)
Emmanuel Pardo-Cerezo
Emmanuel Pardo-Cerezo el 4 de Oct. de 2019
Cerrada: John D'Errico el 4 de Oct. de 2019
Hello Forum,
I have to solve the following question using Matlab:
Problem 1 The function f(x) = sin(x) has a zero on the interval (3, 4), namely, x∗ = π. Perform three iterations of Newton method to approximate this zero, using x1 = 4. Determine the absolute error in each of the computed approximations. What is the apparent order of convergence?
My problem is that I know absolute zero stuff about coding, I know the theory and how to do it on paper but I dont know how to do it with code. Does anyone have a template similar to this question? I need a beginning or something I can work on and then modify.
I am begging for help.
  2 comentarios
Emmanuel Pardo-Cerezo
Emmanuel Pardo-Cerezo el 4 de Oct. de 2019
Also Guys,
this are other two questions they asked me to solve but as well I have no idea how to write the program. I would love if someone can give me the template of any of these problems so I can understand it.
My professor never explains coding and his office hours are not helpfull at all.
Problem 2 Apply the Newton’s method to find the solution to x 3 − x − 3 = 0 starting with x1 = 0. Compute x2, x3, x4, x5, x6, x7 and x7 and compare pair of numbers (x1, x5), (x2, x6), (x3, x7) and (x4, x8). What can you conclude from this computations (Use your computer code) ?
Problem 3 Find an approximation by the method of false position for the root of function f(x) = e x − x 2 + 3x − 2 accurate to within 10−5 (absolute error) on the interval [0, 1]. (Use your computer code)

Respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by