Robert Dodier <robert.dodier at gmail.com> writes:
> I don't know any easy way to cause "if" to evaluate its branches. It
> seems like a reasonable thing to do in some circumstances.
Except that people expect "if" to short-circuit. That is
if x>0 then sqrt(x) else error("aargh");
shouldn't cause an error when x is positive... Similarly, what if one
branch was a long computation? (Such as a complicated integral!)
This particular design decision in Maxima seems like a good idea.
Rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20130119/a2198fbe/attachment-0001.pgp>