i have a recurrence function L(x). I have L1(x), L2(x).... L4(x) as can you see on the image followed. how can I write a matlab program to generate it's different polynoms till L50(x) for example.

|monospac
twoed|

2 件のコメント

Torsten
Torsten 2015 年 2 月 19 日
You forgot to include the recurrence relation.
Best wishes
Torsten.
constantin chanou
constantin chanou 2015 年 2 月 19 日
the recurrence relation is:

サインインしてコメントする。

回答 (1 件)

Titus Edelhofer
Titus Edelhofer 2015 年 2 月 19 日
Hi Constantin,
polynomials are "encoded" as vectors of the coefficients. So you would have (shifting the index by 1):
L{1} = 1;
L{2} = [-1 1];
L{3} = [0.5 -2 1];
If you have the recurrence relation, as Torsten mentioned, you can create the loop (and use e.g. conv to "multiply" polynomials).
Titus

5 件のコメント

constantin chanou
constantin chanou 2015 年 2 月 19 日
Thanks Titus but I succeeded to generate it till L(4). My main concern was how to create a loop using conv. the recurrence relation is:
Titus Edelhofer
Titus Edelhofer 2015 年 2 月 19 日
Shouldn't be too difficult anymore:
  • Rearrange to have L_n on one side of the equation
  • x+2n-1 would be [1 2*n-1]
  • Loop over n to "compute" L{n}
Titus
Titus Edelhofer
Titus Edelhofer 2015 年 2 月 19 日
Although I'm not sure if you did everything right so far. Either the recursion is wrong or L2 is wrong (or I am wrong) ...
Titus
Torsten
Torsten 2015 年 2 月 19 日
I guess the OP means Laguerre polynomials:
n*L_n(x)+(x-2*n+1)*L_(n-1)(x)+(n-1)*L_(n-2)(x)=0
Best wishes
Torsten.
Another hint: the polynomials in the recurrence need to have the same order, so you will need to add
[0 0 (n-1)*L{(n-2)+1}]
Titus

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2015 年 2 月 19 日

コメント済み:

2015 年 2 月 19 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by