HP Forums
CAS: New simplification commands - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: CAS: New simplification commands (/thread-8180.html)



CAS: New simplification commands - compsystems - 04-16-2017 05:11 PM

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