Bug in z_transform.mac?



I should have been more clear.  I know that this way would work and in some 
cases it is faster.  Some problems occur when trying to consolidate the 
if's.  Taking (if x>0 then sin(x) else cos(x)) * (if x>4 then x else x^2) 
into a single if can be done fairly easily. I suppose the only way to know 
if it is faster (and therefore worth it) is to try it.

Rich


-----Original Message----- 
From: Richard Hennessy
Sent: Sunday, January 09, 2011 9:31 PM
To: Barton Willis ; Mark H Weaver
Cc: maxima at math.utexas.edu
Subject: Re: [Maxima] Bug in z_transform.mac?


  x * (if x = 0 then 1 else 0) --> 0.

At least for linear inequalities, I think this is algorithmically possible.


Would this make Maxima faster?


_______________________________________________
Maxima mailing list
Maxima at math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima