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)