{"title":"Solving recurrences for Legendre–Bernstein basis transformations","authors":"D.A. Wolfram","doi":"10.1016/j.exco.2023.100117","DOIUrl":null,"url":null,"abstract":"<div><p>The change of basis matrix <span><math><mi>M</mi></math></span> from shifted Legendre to Bernstein polynomials and <span><math><msup><mrow><mi>M</mi></mrow><mrow><mo>−</mo><mn>1</mn></mrow></msup></math></span> have applications in computer graphics. Algorithms use their properties to find the matrix elements efficiently. We give new functions for the elements of <span><math><mi>M</mi></math></span> as a summation, and a complete hypergeometric function. We find that Gosper’s algorithm does not produce closed-form expressions for the elements of either <span><math><mi>M</mi></math></span> or <span><math><msup><mrow><mi>M</mi></mrow><mrow><mo>−</mo><mn>1</mn></mrow></msup></math></span>. Zeilberger’s algorithm produces four second-order recurrences for the elements of the matrices that enable them to be computed in <span><math><mrow><mi>O</mi><mrow><mo>(</mo><mi>n</mi><mo>)</mo></mrow></mrow></math></span> time, and for the derivation of closed-form functions by row and column for the elements. Two row recurrences are special cases of those found by Woźny (2013) who used a different method. We show that the recurrences for rows of <span><math><mi>M</mi></math></span> and columns of <span><math><msup><mrow><mi>M</mi></mrow><mrow><mo>−</mo><mn>1</mn></mrow></msup></math></span> are equivalent. The recurrences for columns of <span><math><mi>M</mi></math></span> and rows of <span><math><msup><mrow><mi>M</mi></mrow><mrow><mo>−</mo><mn>1</mn></mrow></msup></math></span> generate functions that are the Lagrange interpolation polynomials of their elements. These polynomials are equal to hypergeometric functions, which are solutions of the recurrences.</p></div>","PeriodicalId":100517,"journal":{"name":"Examples and Counterexamples","volume":"4 ","pages":"Article 100117"},"PeriodicalIF":0.0000,"publicationDate":"2023-07-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Examples and Counterexamples","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2666657X23000198","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1
Abstract
The change of basis matrix from shifted Legendre to Bernstein polynomials and have applications in computer graphics. Algorithms use their properties to find the matrix elements efficiently. We give new functions for the elements of as a summation, and a complete hypergeometric function. We find that Gosper’s algorithm does not produce closed-form expressions for the elements of either or . Zeilberger’s algorithm produces four second-order recurrences for the elements of the matrices that enable them to be computed in time, and for the derivation of closed-form functions by row and column for the elements. Two row recurrences are special cases of those found by Woźny (2013) who used a different method. We show that the recurrences for rows of and columns of are equivalent. The recurrences for columns of and rows of generate functions that are the Lagrange interpolation polynomials of their elements. These polynomials are equal to hypergeometric functions, which are solutions of the recurrences.