[Maxima] How to prevent evaluation.
robert.dodier at gmail.com
Tue Jan 5 16:01:08 CST 2010
On Mon, Dec 28, 2009 at 2:33 PM, Richard Hennessy
<rich.hennessy at verizon.net> wrote:
> What I think I need to do is dynamically generate an
> if then else statement as the output from piecewise().
My advice is to do that via buildq which is essentially
a mechanism to substitute in parallel without evaluation.
buildq ([e : x > 0, a1 : foo + 1, a2 : foo - 1], if e then a1 else a2);
=> if x > 0 then foo + 1 else foo - 1
More information about the Maxima