Numerical Analysis -Legendre orthogonal polynomial approximation function implemented

Numerical Analysis -Legendre orthogonal polynomial approximation function implemented

Disclaimer: This article is a blogger original article, follow the  CC 4.0 BY-SA  copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/u013608300/article/details/53730073

                          Numerical Analysis -Legendre orthogonal polynomial approximation function implemented

A defined interval [-11] continuous function, we can put him to expand into Legendre series, which means we can be approximated by a function Legendre series. This article is a reference book Ding Lijuan Cheng Qi Yuan compiled the "numerical methods" second edition, Beijing Institute of Technology Press, used specific formula shown below. The following are given matlab corresponding code, matlab2016a run, matlab2012 also tested successfully, matlab2008 green version of the test to fail.

 

Guess you like

Origin www.cnblogs.com/think90/p/11592029.html