Why do I receive an error when using the MFUN function to evaluate a Hermite polynomial in the Extended Symbolic Math Toolbox?

1 回表示 (過去 30 日間)
I issue the following command:
val = mfun('H',2,.01);
I expect to receive the numerical result -1.9996, but instead I receive the following error message:
??? Error using ==> error
Too many output arguments.
Error in ==> mfun at 79
r = eval(r,emsg);

採用された回答

MathWorks Support Team
MathWorks Support Team 2009 年 6 月 27 日
The error is due to the fact that Maple leaves the call to the Hermite polynomial function "H(2,.01)" unevaluated. This is because the "orthopoly" package to which the H function belongs has not been explicitly made available. To work around this problem, use the following syntax:
with(orthopoly);
val = mfun('H',2,.01);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by