Problem 1583. generate a matrix of Legendre polynomials
input = x - the degree of the polynomial
output = matrix of Legendre polynomials
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
Dyuman Joshi
on 21 Jul 2021
Test suite has been expanded
Christian Schröder
on 26 Feb 2023
As always, please don't use isequal() for comparing floating-point numbers. (My initial attempt would've failed the last test with a deviation on the order of 1e-15, for instance.)
Dyuman Joshi
on 27 Feb 2023
Test suite has been updated to check tolerance instead of equality.
Christian Schröder
on 27 Feb 2023
Thanks, Dyuman!
Solution Comments
Show commentsProblem Recent Solvers17
Suggested Problems
-
Return the largest number that is adjacent to a zero
5414 Solvers
-
Given two arrays, find the maximum overlap
1604 Solvers
-
Reverse the Words (not letters) of a String
453 Solvers
-
Project Euler: Problem 4, Palindromic numbers
1148 Solvers
-
Calculate the derivative of a polynomial
231 Solvers
More from this Author8
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!