Post Reply 
when will be ready a program editor for the CAS MODE ?
01-27-2014, 08:05 PM (This post was last modified: 01-27-2014 08:15 PM by Han.)
Post: #15
RE: when will be ready a program editor for the CAS MODE ?
(01-27-2014 06:14 PM)eried Wrote:  Oh, right, it should be '"y"' as parameter (with single quotes first)

The ' "y" ' behavior is actually a bug (discussed in another thread about indirection). The ' ' quote signifies an algebraic object. The current firmware allows ' "y" ' and will likely be fixed come next update, because this is clearly not a valid algebraic object. In home view, pass "y", and in CAS view, simply use y (no quotes).

What I don't understand, though, is that the variable is really just a dummy variable. So why even have it as an input parameter when it has no bearing on the output?

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;

This code should work in both Home and CAS and the user does not have to worry about specifying any "variable" parameter.

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 08:05 PM



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