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

1 Ansicht (letzte 30 Tage)
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);

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 27 Jun. 2009
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);

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by