Error using symengine. Nonnegative integer or a symbol expected

조회 수: 8 (최근 30일)
Ceren Gurkan
Ceren Gurkan 2020년 2월 10일
댓글: Ceren Gurkan 2020년 2월 13일
I had a piece of code that was working fine with Matlab 2009 now I have Matlab 2019 and the very same code gives me the error saying
Error using symengine
Nonnegative integer or a symbol expected.
Error in sym/privQuaternaryOp (line 1020)
Csym = mupadmex(op,args{1}.s, args{2}.s, args{3}.s, args{4}.s, varargin{:});
Error in sym/jacobiP (line 7)
Y = privQuaternaryOp(n,a,b,x, 'symobj::vectorizeSpecfunc', 'orthpoly::jacobi', 'undefined');
Error in sym.useSymForNumeric (line 167)
res = cast(fn(args{:}),superiorfloat(varargin{:}));
Error in double/jacobiP (line 7)
Y = sym.useSymForNumeric(@jacobiP, n, a, b, x);
Error in orthopoly2D_rst (line 28)
p_j = jacobiP(s,2*i+1,0,j);
Anyone knows how I can quick fix this compatibility issue?
  댓글 수: 4
Walter Roberson
Walter Roberson 2020년 2월 10일
Perhaps before you were using the Maple symbolic engine? Or perhaps you were using a third-party function that has the parameters in a different order? I find one on github in which the first parameter is x and the order is the last parameter.
If somehow you truly need order -1 then at the bottom of this link there is a hypergeom equivalence that you can use. https://www.maplesoft.com/support/help/Maple/view.aspx?path=JacobiP
Ceren Gurkan
Ceren Gurkan 2020년 2월 13일
Thanks to your usefulr reply I figured that the ordering of the parameters was wrong.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by