Derivative of a polynomial in MATLAB

2 ビュー (過去 30 日間)
Fred
Fred 2013 年 2 月 11 日
Hi,
I want to create a series of Hermite polynomials which includes derivative. How can I do that since MATLAB does not have derivative function? This is the polynomial: http://upload.wikimedia.org/math/a/6/a/a6a7ef35134c07aafcdbdefe522ae3cf.png Thanks

採用された回答

Walter Roberson
Walter Roberson 2013 年 2 月 11 日
If you have access to the symbolic toolbox, then
syms x
n = 7;
t = num2cell(x[ones(1,n)));
diff(exp(-(x^2)/2), t{:})
  1 件のコメント
Walter Roberson
Walter Roberson 2013 年 2 月 11 日
Note that exp(-(x^2)/2) is not a polynomial, and that makes a significant difference to your choices. If it was a polynomial then you would be able to take advantage of http://www.mathworks.com/help/matlab/ref/polyder.html

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

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by