[Maxima] prederror, conditionals
Robert Dodier
robert.dodier at gmail.com
Wed Sep 23 10:59:48 CDT 2009
On Wed, Sep 23, 2009 at 9:30 AM, Richard Fateman
<fateman at cs.berkeley.edu> wrote:
> I have found the Mathematica version of "If" to be pretty handy.
> If[test,a,b,c] returns a if test is true, b if test is false, and c
> if test is neither true nor false.
Well, you can already get the same effect, right?
if maybe(test) = 'unknown then c else (if test then a else b);
This is useful, but not so useful that it needs its own syntax.
> I don't see a really good version of ... if test then a else b <what?> c
> but a "functional" version of a conditional might solve the syntax problem.
The notation If[test, a, b, c] is unclear and I'm opposed to imitating it.
All the best
Robert Dodier
More information about the Maxima
mailing list