Question: Make the QuadN function suitable for up to n = 8 Gauss quadrature rule ( that is , it can change from n = 1
Make the QuadN function suitable for up to n Gauss quadrature rule that is it can change from n to and find the relevant coefficient and certain xi values by revising our trapezoidal, rectangular, integral functions according to Simphson rules to a state that stops when a certain absolute relative error value is reached. test via a function function I GausQuadnfabn
xi wi s are the points and weights for calculation
improper integrals with special points
finline f
n
I;
if n
disp I was here'
w;x
w;x
for i:n
IIbawifbaxiba;
end
elseif n
w;x ;
w;x
w;x
for i:n
IIbawifbaxiba;
end
elseif n
w;x ;
w;x ;
w;x;
w;x ;
for i:n
IIbawifbaxiba;
end
else
dispThis version work only up to points Gaussian quadrature'
end
I
end
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
