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

1 view (last 30 days)
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);

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 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);

More Answers (0)

Categories

Find more on Polynomials in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!