Question: 1) Write a computer code in matlab to carry out the Newton method for finding solutions of the following system F (x, y, z) =
1) Write a computer code in matlab to carry out the Newton method for finding solutions of the following system F (x, y, z) = 0 of nonlinear equations: x + y + cos(z) = 0 x2 + y2 + z2 = 2 sin(x)(y + z) = 1 The code should a) read a start vector from the screen b) do a maximum of 20 iterations c) for each step, print the step number, h and F (x, y, z). d) stop the iteration if h < 106 or F (x, y, z) < 106. e) Print out your solution when the iteration stops f) You should use calculus to find the formulae for the Jacobian matrix. Be careful to get these correct. 2) Solve this system starting with the vector (1, 1, 1)T . 3) The following system has several solutions. Experiment with different starting vectors to find three of them. Print out the same information as before. sin(x+y)+exy =0 cos(x+z)x2y2 =0 ex ez = 0 Turn in a complete listing of your code along with the output for all runs.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
