help regarding ((differen​tiation-1)​^n)*x^n

how to simulate this equation in matlab....i am getting error 'unexpected matlab equation'.... 1/factorial(n)((d/dx-1)^n)*x^n

7 commentaires

Walter Roberson
Walter Roberson le 23 Juil 2018
What is your actual code? The error message suggests you are trying to use implied multiplication.
samriti bali
samriti bali le 23 Juil 2018
hi... there is no code actually..just want to type this equation in matlab and check its output...only need to simulate this equation...want the actual syntax of ((d/dx-1)^n)*x^n
Walter Roberson
Walter Roberson le 23 Juil 2018
What is that intended to mean? The nth derivative of -1 ?
samriti bali
samriti bali le 23 Juil 2018
Modifié(e) : Walter Roberson le 23 Juil 2018
https://en.wikipedia.org/wiki/Laguerre_polynomials.... sir i have sent u d link ...please check the 4th equation...this is the equation i wanted to simulate
Dimitris Kalogiros
Dimitris Kalogiros le 23 Juil 2018
Do you want to differentiate (n-1) time the function f(x)=x^n ? Is that your question ?
samriti bali
samriti bali le 23 Juil 2018
https://en.wikipedia.org/wiki/Laguerre_polynomials
Aarti Dwivedi
Aarti Dwivedi le 23 Juil 2018
Why don't you write the code yourself and then ask for help instead of pointing to an equation and asking people to write it for you? What do you mean when you say "no code, just want to type this equation in matlab and check its output"? You can check the output of any formula by breaking it down into smaller parts that a computer can compute. For this particular case, you would need to break it into factorial calculation, binomial expansion, differentiation, creating the interval of evaluation. Parts of what you need are already built into MATLAB, some you may have to write yourself. Once you have done THAT, then we can help with the difficulties you are facing.

Connectez-vous pour commenter.

 Réponse acceptée

Aarti Dwivedi
Aarti Dwivedi le 23 Juil 2018

0 votes

laguerreL can generate Laguerre polynomial and function for you, since that is what you are looking for, as per your comments.

3 commentaires

samriti bali
samriti bali le 23 Juil 2018
thank u ma'm for your suggestions and help...
samriti bali
samriti bali le 23 Juil 2018
thanks a lot ma'm....laguerreL has really helped me...will take care of ur points in future...
Aarti Dwivedi
Aarti Dwivedi le 23 Juil 2018
If the answer helped you, click on "accept answer".

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by