Finding the 'n'-th derivative of a function containing 'n'

25 ビュー (過去 30 日間)
Beep Boop
Beep Boop 2019 年 3 月 8 日
コメント済み: Beep Boop 2019 年 3 月 8 日
Hi all,
I'm currently trying to plot the associated laguerre polynomials
,however I'm having difficulties with the differentiation term, as
diff(exp(-x)*x^(n+k),x,n)
differentiates first with regard to a, then with regard to n, instead of differentiating n times with regard to x.
Is there a way to have it do the latter (differentiate n times with regard to x)?
Thank you

採用された回答

Torsten
Torsten 2019 年 3 月 8 日
syms x k
n = 10;
diff(exp(-x)*x^(n+k),x,n)
  1 件のコメント
Beep Boop
Beep Boop 2019 年 3 月 8 日
Thank you! Works great!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by