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

30 views (last 30 days)
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

Accepted Answer

Torsten
Torsten on 8 Mar 2019
syms x k
n = 10;
diff(exp(-x)*x^(n+k),x,n)

More Answers (0)

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!