How to define a New Maxima Function



-----maxima-bounces at math.utexas.edu wrote: -----

>On 2/15/08, Alexander Ray <riccio at gmx.at> wrote:
>
>> Is it possible/easy to define in MAXIMA a generic SYMBOLIC function of
>> the following form?
>>
>> F( x, (x11,x12,f1(x)), (x21,x22,f2(x), ... )

>> f1(x), if x in [x11,x12]
>> f2(x), if x in [x21,x22]
>> ...
>> 0, if x elsewhere

Getting all of Maxima (sign, limit, diff, integrate, solve, ...) to do
something useful with split-rule expressions is the hard part. But the
first step is the build tools to define such expression.

Barton