Question: MATLAB: Solve the following simultaneous equations using the Newton-Raphsons method with guesses of x=1.5and y=3.5: x2 +xy=10 (1) y+3xy2 =57 (2) The stop condition is
MATLAB:
Solve the following simultaneous equations using the Newton-Raphsons method with guesses of x=1.5and y=3.5:
x2 +xy=10 (1)
y+3xy2 =57 (2)
The stop condition is when both relative approximation errors are below 0.1%. Write one single program (not using the function) and output the solution in a table format with five columns Iteration No., x, y, a(x), a(y) where a(x) and a(y) are the relative
approximation errors of the variables x and y, respectively. In your program, you need to do the following three tasks.
-
(a) Use the equations (12.12) to solve these two equations.
-
(b) Use the equation (12.17) to solve these two equations with the Matlab matrix inverse function
inv.
-
(c) Plot the two functions of (1) and (2) to graphically locate the solution and verify the solutions
obtained from (a) and (b). You can use the interval of [0,4] for x to plot.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
