Why this code runs well
syms x y f(x,y)=x+1f(x, y) =x + 1
while this one is wrong?
s(x,y)=1 错误使用 sym/subsindex (line 766) Invalid indexing or function definition. When defining a function, ensure that the arguments are symbolic variables and the body of the function is a SYM expression. When indexing, the input must be numeric, logical, or ':'.
in this case, how can I get a function of two variables that always equals a const?
Best Answer