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

7 Kommentare

Walter Roberson
Walter Roberson am 23 Jul. 2018
What is your actual code? The error message suggests you are trying to use implied multiplication.
samriti bali
samriti bali am 23 Jul. 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 am 23 Jul. 2018
What is that intended to mean? The nth derivative of -1 ?
samriti bali
samriti bali am 23 Jul. 2018
Bearbeitet: Walter Roberson am 23 Jul. 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 am 23 Jul. 2018
Do you want to differentiate (n-1) time the function f(x)=x^n ? Is that your question ?
samriti bali
samriti bali am 23 Jul. 2018
https://en.wikipedia.org/wiki/Laguerre_polynomials
Aarti Dwivedi
Aarti Dwivedi am 23 Jul. 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.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Aarti Dwivedi
Aarti Dwivedi am 23 Jul. 2018

0 Stimmen

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

3 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by