plotting piecewise functions



Stavros Macrakis wrote:
> A piecewise definition is fine, but the function must be well-defined
> within the whole domain.
> 
> For example:
> 
>   plot2d( '(if x>1 then 3 else 1) ,
>           [x,0,3] );  /* Expression form */
> 
>     Note that you must quote the expression.
> 
> Logically, you should also be able to write:
> 
>   plot2d( lambda([x], if x>1 then 3 else 1) ,
>           [x,0,3] );                         /* Functional form */
> 
> but Maxima has a bug, and doesn't recognize the lambda expression as a
> function.  
> 

  Hi --

   You wouldn't have any idea where this bug may lie, in the source 
code, would you?

   TIA,
   Regs
   Henry