Post Reply 
when will be ready a program editor for the CAS MODE ?
01-27-2014, 04:49 PM
Post: #6
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: when will be ready a program editor for the CAS MODE ? - Han - 01-27-2014 04:49 PM



User(s) browsing this thread: 1 Guest(s)