P,(t) satisfies the recurrence relation 3, P(t) = tP,(t) + a, P._1(t), 2 1 P(t) — P(x The function S(t) = / A-R@ dr satisfies the same recurrence relation as P,(t) - : S(t) ci) the weight corresponding to the node t = t; is given by w; = Pll) nti (d) (i) Write a Maple procedure which takes as its argument a positive integer n and returns as its results the nodes and weights of the n-point Gaussian quadrature rule for the interval [1,1]. The procedure must use the recurrence relation from the above analysis to obtain P,(t) and S,(t), solve P,(t) = 0 to obtain the nodes and then use the result of part (c)(ii) to find the weights. Note: if f is an expression for polynomial of degree n, then rts := Array( [ fsolve( f) 1) ; will produce an array containing all of its (real) roots. If f is a function then try rts := Array( [ fsolve( £f( x’ ) ) 1) ; instead. (ii) Test your procedure for the case n = 3, and display the results for the cases n = 10 and n = 15 as well. Check that the weights add up to 2 in each case.
Question:
P,(t) satisfies the recurrence relation 3, P(t) = tP,(t) + a, P._1(t),
2 1 P(t) — P(x
The function S(t) = / A-R@ dr satisfies the same recurrence relation as P,(t)
- : S(t)
ci) the weight corresponding to the node t = t; is given by w; = Pll)
nti
(d) (i) Write a Maple procedure which takes as its argument a positive integer n and returns
as its results the nodes and weights of the n-point Gaussian quadrature rule for the
interval [1,1]. The procedure must use the recurrence relation from the above analysis
to obtain P,(t) and S,(t), solve P,(t) = 0 to obtain the nodes and then use the result
of part (c)(ii) to find the weights.
Note: if f is an expression for polynomial of degree n, then
rts := Array( [ fsolve( f) 1) ;
will produce an array containing all of its (real) roots. If f is a function then try
rts := Array( [ fsolve( £f( x’ ) ) 1) ;
instead.
(ii) Test your procedure for the case n = 3, and display the results for the cases n = 10
and n = 15 as well. Check that the weights add up to 2 in each case.
Asked by: Test User 100193
Created at: 2025-05-08 04:14:24
Final Answer:
📢 Instructions:
- Ask anything relatd to above question only.
- For new Question goto :
VIPSolutions