求助]怎样使用toolbox中的特殊函数?
要用Extended Symbolic Math Toolbox中的Hermite polynomial mhelp H的说明如下 orthopoly - Hermite polynomial Calling Sequence H(n, x) orthopoly(n, x) Parameters n - non-negative integer x - any algebraic expression Description - The H(n,x) function computes the nth Hermite polynomial evaluated at x. - The Hermite polynomials are orthogonal on the interval (-infinity, infinity) with respect to the weight function w(x) = exp(-x^2). They satisfy: infinity / | { 0 n <> m | w(t) H(n, t) H(m, t) dt = { | { 1/2 n / { Pi 2 n! n = m -infinity - Hermite polynomials satisfy the following recurrence relation: H(0,x) = 1, H(1,x) = 2*x, H(n,x) = 2*x*H(n-1,x) - 2*(n-1)*H(n-2,x), for n > 1. Examples > with(orthopoly): > H(2,x); 2 -2 + 4 x > H(3,x); 3 8 x - 12 x > H(10,5); 3275529760 See Also HermiteH 可是我用的时候却出现错误: with(orthopoly); ??? Undefined function or variable 'orthopoly' 请问这是怎么回事?[此贴子已经被作者于2007-12-19 15:47:39编辑过] <p>要用Extended Symbolic Math Toolbox中的Hermite polynomial mhelp </p><p>H的说明如下 </p><p>orthopoly - Hermite polynomial</p><p>Calling Sequence<br/> H(n, x)</p><p> orthopoly(n, x)</p><p><br/>Parameters<br/> n - non-negative integer</p><p> x - any algebraic expression</p><p><br/>Description<br/>- The H(n,x) function computes the nth Hermite polynomial evaluated at x. </p><p>- The Hermite polynomials are orthogonal on the interval (-infinity, infinity)<br/> with respect to the weight function w(x) = exp(-x^2). They satisfy: </p><p> infinity<br/> /<br/> | { 0 n <> m<br/> | w(t) H(n, t) H(m, t) dt = {<br/> | { 1/2 n<br/> / { Pi 2 n! n = m<br/> -infinity</p><p>- Hermite polynomials satisfy the following recurrence relation: </p><p> H(0,x) = 1,<br/> H(1,x) = 2*x,<br/> H(n,x) = 2*x*H(n-1,x) - 2*(n-1)*H(n-2,x), for n > 1.</p><p><br/>Examples<br/>> with(orthopoly):<br/>> H(2,x);</p><p> 2<br/> -2 + 4 x</p><p>> H(3,x);</p><p> 3<br/> 8 x - 12 x</p><p>> H(10,5);</p><p> 3275529760</p><p><br/>See Also <br/>HermiteH <br/></p><p>
</p><p>
</p><p>可是我用的时候却出现错误: </p><p>
</p><p>with(orthopoly); </p><p>??? Undefined function or variable 'orthopoly' </p><p>请问这是怎么回事?</p> 原贴不知道怎么回事总是变成那个样子,回车都被去掉了 <p>这个函数是Maple的函数,要想调用它需要先调入包,再用maple函数!例如:</p><p><br/>>> maple('with(orthopoly);')</p><p>ans =</p><p></p><p>>> maple('H(3,x)')</p><p>ans =</p><p>8*x^3-12*x</p> <p>非常非常感谢~~</p>
页:
[1]