Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

System of equations: (Gauss Elimination Method) Root of equations: Newtons Method Interpolation: (cubic Spline Interpolation) Numerical Integration (Trapezoidal Rule) Optimization: (Golden section...

1 answer below »

System of equations: (Gauss Elimination Method)
Root of equations: Newtons Method
Interpolation: (cubic Spline Interpolation)
Numerical Integration (Trapezoidal Rule)
Optimization: (Golden section Search)
Answered Same Day Dec 22, 2021

Solution

David answered on Dec 22 2021
126 Votes
System of equations: (Gauss Elimination Method)
Program
function [x] = GaussianEliminate(A, b)
%work out the number of equations
N = length(b)
%Gaussian elimination
for column=1:(N-1)
%work on all the rows below the diagonal element
for row = (column+1):N
%work out the value of d
d = A(row,column)/A(column,column);
%do the row operation
A(row,:) = A(row,:)-d*A(column,:)
(row) = b(row)-d*b(column)
end%loop through rows
end %loop through columns
%back substitution
for row=N:-1:1
x(row) = b(row);
for i=(row+1):N
x(row) = x(row)-A(row,i)*x(i);
end
x(row) = x(row)/A(row,row);
end
%return the answer
x = x’;
eturn
As we have and
and
[



] [



] [



]
By using above equalities
[



] [



] [



]
By Gaussian elimination method
[



|



]
R2 = 6*R2+R1, R3 = 3*R3+R1
[



|

...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here