41 MCODE - Hermite and Lagrange Polynomials - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: HP-41C Software Library (/forum-11.html) +--- Thread: 41 MCODE - Hermite and Lagrange Polynomials (/thread-2712.html) |
41 MCODE - Hermite and Lagrange Polynomials - Ángel Martin - 12-25-2014 06:00 PM As usual when you thought a project was done new ideas pop up that just can't be ignored... like this sweet & short MCODE implementation for the Hermite and Lagrange orthogonal polynomials using the recurrence approach - as an afterthought to be included in the SandMatrix module. Code:
Only valid for integer orders. More complex formulas exist for non-integer cases, see JM Baillard's pages for details: http://hp41programs.yolasite.com/orthopoly.php Note that the listing above is for a sub-function sitting in a bank-switched page. Comments and suggestions for improvement are welcome. Enjoy, as usual ;-) |