Error using symengine. Nonnegative integer or a symbol expected

7 vues (au cours des 30 derniers jours)
Ceren Gurkan
Ceren Gurkan le 10 Fév 2020
Commenté : Ceren Gurkan le 13 Fév 2020
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 commentaires
Walter Roberson
Walter Roberson le 10 Fév 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
Ceren Gurkan
Ceren Gurkan le 13 Fév 2020
Thanks to your usefulr reply I figured that the ordering of the parameters was wrong.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by