How do I get the differential of Hermite polynomial function?

7 ビュー (過去 30 日間)
mohammed omran
mohammed omran 2020 年 10 月 6 日
編集済み: Anirban 2020 年 10 月 8 日
syms m1 x
diff(hermiteH(m1, x),x)
  10 件のコメント
mohammed omran
mohammed omran 2020 年 10 月 7 日
I have got
>> which hermiteH -all % what does it show?
C:\Program Files\Polyspace\R2020a\toolbox\symbolic\symbolic\@double\hermiteH.m % double method
C:\Program Files\Polyspace\R2020a\toolbox\symbolic\symbolic\@single\hermiteH.m % single method
C:\Program Files\Polyspace\R2020a\toolbox\symbolic\symbolic\@sym\hermiteH.m % sym method
>>
Anirban
Anirban 2020 年 10 月 8 日
編集済み: Anirban 2020 年 10 月 8 日
Hi,
This might be unrelated to your original question, but the paths you show seem a little strange. You show a Polyspace path but you are using the Symbolic Math Toolbox which is unrelated to Polyspace.
The paths show:
C:\Program Files\Polyspace\R2020a\toolbox\symbolic\symbolic\@double\hermiteH.m
Whereas it should be:
C:\Program Files\MATLAB\R2020a\toolbox\symbolic\symbolic\@double\hermiteH.m
Did you by any chance do an addpath(genpath('C:\Program Files\Polyspace')) to your MATLAB installation to integrate Polyspace and MATLAB? If so, please use restoredefaultpath to restore the default MATLAB path (or at least use rmpath to remove paths starting with C:\Program Files\Polyspace) and then use the official instructions to integrate Polyspace and MATLAB.

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

回答 (2 件)

madhan ravi
madhan ravi 2020 年 10 月 6 日
編集済み: madhan ravi 2020 年 10 月 6 日
https://www.mathworks.com/matlabcentral/answers/606286-how-do-i-get-the-differential-of-hermite-polynomial-function#comment_1039721 , you have to run the code in MATLAB by pressing enter in command window or by pressing the green triangle button in script or shift + ctrl/cmd.

Star Strider
Star Strider 2020 年 10 月 6 日
Did you run the code you posted?
When I run it (in R2020b):
syms m1 x
DHx = diff(hermiteH(m1, x),x)
I get:
DHx =
2*m1*hermiteH(m1 - 1, x)
.
  8 件のコメント
mohammed omran
mohammed omran 2020 年 10 月 7 日
Thank you very much
Star Strider
Star Strider 2020 年 10 月 7 日
My pleasure!
In the interim, you can use the result I posted.

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by