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

1 visualización (últimos 30 días)
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);

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by