Make the QuadN function suitable for up to n = 8 Gauss quadrature rule ( that is
Question:
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
Business Communication Essentials a skill based approach
ISBN: 978-0132971324
6th edition
Authors: Courtland L. Bovee, John V. Thill