Stavros Macrakis <macrakis at alum.mit.edu> writes:
> How about returning an explicit executable definition with a conditional, e.g.
>
> ?? ? c[n] := if mod(n,2)=0 then ... elseif mod(n,2)=1 then ...
Regarding the "if mod(n,2)=0 then ..." part: I think this is the ideal
solution, though it will be a bit inconvenient until Maxima is able to
manipulate and simplify conditional expressions more effectively. In
particular, I'd want an easy way to simplify an expression assuming that
mod(n,m)=c.
As for the ":=", I'm not sure why this would be appropriate here, when
the norm for other solvers in Maxima is to return equations.
Best,
Mark