Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started