Question: The Legendre polynomials, P n ( x ) , are a system of orthogonal polynomials discovered in 1 7 8 2 by French mathematician Adrien
The Legendre polynomials, are a system of orthogonal polynomials discovered in by French mathematician AdrienMarie Legendre. is given by Bonnet's recurrence relation
for real in the interval and integer with for and for A plot of Legendre polynomials for to is shown in the figure below.
Develop a code that computes for values of from to in an iterative structure that implements the recurrence relation using a recursive function for Observe is a function of and Thus, define a recursive function
that invokes a call to itself via and Print values of in intervals of Example output:
:
:
:
:
:
:
:
Use the Matplotlib library to generate the figure above and render your plot within your Jupyter Notebook. Once you have your algorithm working, increase the resolution of your plot by using or more linearly spaced values for on the interval
"code with python"
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
