Post Reply 
when will be ready a program editor for the CAS MODE ?
01-27-2014, 07:40 PM (This post was last modified: 01-27-2014 07:57 PM by compsystems.)
Post: #14
RE: when will be ready a program editor for the CAS MODE ?
sorry for my bad English,

an object must be distinguished between single quotes and double quotes, otherwise within a program can not detect

example

Code:
//convolution Version3
export convolution3(v1,v2,var)
begin 
  local p1,p2,c; 
  if type( var ) == 2
  then 
    print("Invalid third parameter, must be a variable"); 
  else
    p1:=poly2symb(v1,var); 
    p2:=poly2symb(v2,var); 
    c:=symb2poly(simplify(p1*p2),var);
    return(c); 
  end;
end;

convolution3([1.,2.,3.,4.],[5.,6.,7.,8.],'"y"'); returns "Invalid third parameter, must be a variable" =( =[

request for HP-team

'y' should be interpreted as a symbolic variable, no string

TYPE( "y" ) ; [enter] returns 2

TYPE( 'y' ) ; [enter] returns 2.1 // idea
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 ? - compsystems - 01-27-2014 07:40 PM



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