HP Forums

Full Version: CAS: New simplification commands
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Expressions converting to the form x + y * i are easier to read, I suggest please that the CAS incorporate the following commands

PHP Code:
#cas
  
collectxyi(exprIn):=
  
begin
   
return normal(re(exprIn)) + normal(im(exprIn))*i;
  
end;
#end 

#cas
  
collectxyi2(exprIn):=
  
begin
   
return re(exprIn) + im(exprIn)*i;
  
end;
#end 

collectxyi( (1+i/(sqrt(2)+1))*sqrt(sqrt(2)+1)/(sqrt(2)) ); ->
(√(2)*√(√(2)+1)/2) + (√(2)*√(√(2)-1)/2) * i
Reference URL's