when will be ready a program editor for the CAS MODE ?
01-27-2014, 04:49 PM
Post: #6
 Han Senior Member Posts: 1,810 Joined: Dec 2013
RE: when will be ready a program editor for the CAS MODE ?
You are mislabeling a mis-use of shortcut notation as a bug. The choice of xx:="xx"; seems ugly only because it was a spur-of-the-moment choice. You could have easily just used:

Code:
 export  convolution1(v1,v2) begin    local p1,p2,c,var:="x";   purge(var);   p1:=poly2symb(v1,var);    p2:=poly2symb(v2,var);    c:=symb2poly(simplify(p1*p2),var);   return(c);  end;

The issue you are having is that you are using a shortcut notation (by not specifying the variable), and the system therefore has to guess what variable you intended -- and it can only do this based on its current settings. Since you are in the Function [App], it can only assume that the variable you meant was 'X'. This, of course, does not work well in CAS, since 'X' is a global variable. So instead of using the shortcut notation, be explicit with the parameters for CAS functions.

Graph 3D | QPI | SolveSys
 « Next Oldest | Next Newest »