# Orthogonal Polynomials and Approximation Theory
In this folder, you can find the codes that are used in the third chapter of the Master thesis:
*“Orthogonal Polynomials and Approximation Theory”*.
In particular, you can find:
- **figure\_hermiteH** [*script*] plots the first five Physicist Hermite orthogonal polynomials in the interval [-2,2]. The Matlab function **hermiteH** is used, hence to run this script Matlab r2014b is needed at least. *Figure 3.2 was realized using this script.*
- **figure\_hermiteHe** [*script*] plots the first five Probabilistic Hermite orthogonal polynomials in the interval [-2,2], highlighting their zeros. Running this script requires that the functions **hermite** and **GaussHermite** are in the same folder. *Figure 3.3 was realized using this script.*
- **figure\_laguerre** [*script*] plots the first five Laguerre orthogonal polynomials in the interval [0,5], highlighting their zeros. Running this script requires that the functions **laguerre** and **GaussLaguerre** are in the same folder. *Figure 3.6 was realized using this script.*
- **figure\_legendre** [*script*] plots the first five Legendre orthogonal polynomials in the interval [-1,1], highlighting their zeros. Running this script requires that the functions **legendre** and **GaussLagendre** are in the same folder. *Figure 3.4 was realized using this script.*
- **figure\_legendre\_sh** [*script*] plots the first five shifted Legendre orthogonal polynomials in the interval [0,1], highlighting their zeros. Running this script requires that the functions **legendre_sh** and **GaussLagendre_sh** are in the same folder. *Figure 3.5 was realized using this script.*
- **figure\_pochhammer\_symbol** [*script*] plots the first seven Pochhammer functions in the interval [-4,4]. The Matlab function **pochhammer** is used, hence to run this script Matlab r2014b is needed at least. *Figure 3.1 was realized using this script.*
- **[zeros,weight] = GaussHermite(n,sum\_weight)** [*function*] evaluates the nodes **zeros** and associated **weight** for the Gauss Hermite Quadrature Rule. It requires in input the number **n** of nodes that the users want with the associated weights. **n** is the degree of the probabilistic Hermite polynomial and its zeros are the corresponding nodes. It is possible to specify also the value of the sum of all the weights, **sum\_weight** (for default this value is set equal to 1).
- **[zeros,weight] = GaussLaguerre(n,sum\_weight)** [*function*] evaluates the nodes ** zeros** and associated weights **weight** for the Gauss Laguerre Quadrature Rule. It requires in input the number **n** of nodes that the users want with the associated weights. **n** is the degree of the Laguerre polynomial and its zeros are the corresponding nodes. It is possible to specify also the value of the sum of all the weights **sum\_weight** (for default this value is set equal to 1).
- **[zeros,weight] = GaussLegendre(n,sum\_weight)** [*function*] evaluates the nodes **zeros** and associated weights **weight** for the Gauss Legendre Quadrature Rule. It requires in input the number **n** of nodes that the users want with the associated weights. **n** is the degree of the Legendre polynomial and its zeros are the corresponding nodes. It is possible to specify also the value of the sum of all the weights **sum\_weight** (for default this value is set equal to 1).
- **[zeros, weight] = GaussLegendre\_changeinterval(zeros,weight,a,b)** [*function*] translates the nodes **zeros** and **weight** generated by the function **GaussLegendre** in a opportune interval [**a**,**b**]. If the interval [**a**,**b**]is not specified, the program for default set [a,b]=[0,1]. It is not required any extra function to run this function. *Please refer to equation (3.59)*
- **[zeros,weight] = GaussLegendre\_sh(n)** [*function*] evaluates the nodes **zeros** and associated weights **weight** for the Gauss shifted Legendre Quadrature Rule. It requires in input the number **n** of nodes that the users want with the associated weights. **n** is the degree of the shifted Legendre polynomial and its zeros are the corresponding nodes. This function merges efficiently the function **GaussLegendre** and **GaussLegendre\_changeinterval**, in any case it is not required any extra function to run this function.
- **[h]=hermite(n,x)** [*function*] computes the probabilistic Hermite polynomials of degree **n**. **x** is the optional values where we want to evaluate the probabilistic Hermite polynomial of degree **n**. **x** can be a scalar a vector or a matrix. If **x** is omitted then **h** is an array with (**n**+1) elements that contains coefficients of each probabilistic Hermite polynomial term. If **x** is given, then **h** = He\_ **n** (**x**) and **h** has the same size of **x**.
- **[l]=laguerre(n,x)** [*function*] computes the Laguerre polynomials of degree **n**. **x** is the optional values where we want to evaluate the Laguerre polynomial of degree **n**. If **x** is omitted then **l** is an array with (**n**+1) elements that contains coefficients of each Laguerre polynomial term. If **x** is given, then **l** = L\_ **n** (**x**) and **l** has the same size of **x**.
- **[p]=legendre(n,x)** [*function*] computes the Legendre polynomials of degree **n**. **x** is the optional values where we want to evaluate the Legendre polynomial of degree **n**. If **x** is omitted then **p** is an array with (**n**+1) elements that contains coefficients of each Legendre polynomial term. If **x** is given, then **p** = P\_ **n** (**x**) and **p** has the same size of **x**.
- **[p]=legendre\_sh(n,x)** [*function*] computes the shifted Legendre polynomials of degree **n**. **x** is the optional values where we want to evaluate the shifted Legendre polynomial of degree **n**. If **x** is omitted then **p** is an array with (**n** +1) elements that contains coefficients of each shifted Legendre polynomial term. If **x** is given, then **p** = P^\* \_ **n** (**x**) and **p** has the same size of **x**.
The development of the algorithms for the calculation of orthogonal polynomials is based on the efficient algorithm of Avan Suinesiaputra and Fadillah Z Tala
for computing physicists Hermite polynomials [hermite(n,x) of File Exchange](http://it.mathworks.com/matlabcentral/fileexchange/27746-hermite-polynomials/content/hermite.m)
[Return to the main folder](https://github.com/lucafe/PCE4UDDE_matlab_codes).
没有合适的资源?快使用搜索试试~ 我知道了~
lucafe-PCE4UDDE_matlab_codes.zip
共63个文件
m:54个
md:6个
mat:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 115 浏览量
2023-08-18
22:53:31
上传
评论
收藏 877KB ZIP 举报
温馨提示
lucafe-PCE4UDDE_matlab_codes.zip
资源推荐
资源详情
资源评论
收起资源包目录
lucafe-PCE4UDDE_matlab_codes.zip (63个子文件)
lucafe-PCE4UDDE_matlab_codes
新建文本文档.txt 0B
PCE4UDDE_matlab_codes-master
3ch_Approximation
GaussLaguerre.m 2KB
legendre.m 2KB
GaussLegendre_sh.m 2KB
figure_pochhammer_symbol.m 682B
GaussLegendre_changeinterval.m 987B
hermite.m 2KB
figure_hermiteH.m 1KB
figure_hermiteHe.m 1KB
figure_legendre_sh.m 1KB
figure_legendre.m 1KB
GaussLegendre.m 2KB
laguerre.m 2KB
README.md 6KB
GaussHermite.m 2KB
legendre_sh.m 2KB
figure_laguerre.m 2KB
5ch_UDDE
GaussLegendre_sh.m 1KB
Coefficients_Legendre.m 1KB
MAIN_FILE.m 4KB
Hayes_UDDE.m 1KB
README.md 1KB
legendre_sh.m 2KB
Indexes.m 1KB
4ch_PCE
Hermite_PCE
GaussLegendre_sh.m 2KB
Hermite_PCE_of_Exponential_Distribution.m 2KB
hermite.m 2KB
Hermite_PCE_of_Normal_Distribution.m 941B
GaussHermite.m 2KB
Examples_FIELD_&_GRIGORIU
Field_Grigoriu_y1.m 1021B
Field_Grigoriu_y2.m 1KB
hermite.m 2KB
GaussHermite.m 2KB
Stochastic_ODE
MAIN_FILE.m 4KB
hermite.m 2KB
stochastic_ode_PCE.m 291B
GaussHermite.m 2KB
Grids
tensorQUAD.m 3KB
sparseQUAD.m 5KB
README.md 2KB
Hard_Cover.pdf 853KB
6ch_Results
test_glucose_insuline.m 3KB
tensorQUAD.m 3KB
test_2_Cushing.m 1KB
sparseQUAD.m 5KB
eigAM.m 8KB
test_4_UDDE.m 2KB
test_1_Hayes.m 1KB
StochasticCollocation.m 7KB
PCE_parameters_IGTT.mat 1KB
test_3_Hayes.m 1KB
README.md 1KB
2ch_Probability
LCG.m 799B
Distribution_Uniform.m 1KB
Sampling_Uniform.m 767B
Density_estimators.m 2KB
Inversion_method_figure.m 1KB
Distribution_Normal.m 941B
Distribution_Exponential.m 833B
README.md 3KB
Sampling_Normal.m 1KB
Sampling_Exponential.m 2KB
README.md 3KB
共 63 条
- 1
资源评论
AbelZ_01
- 粉丝: 875
- 资源: 5441
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功