Error using symengine. Nonnegative integer or a symbol expected
7 views (last 30 days)
Show older comments
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 Comments
Walter Roberson
on 10 Feb 2020
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
Answers (0)
See Also
Categories
Find more on Logical 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!