On 6/23/10, Grigory Sarnitskiy <sargrigory at yandex.ru> wrote:
> I like the idea, but how do I implement the additivity?
Well, declare(f, additive) tells Maxima to simplify f(a + b)
to f(a) + f(b). f can take multiple arguments, however, it is
additive only in the first argument. e.g. f(a + b, c) => f(a, c)
+ f(b, c) but f(a, b + c) => f(a, b + c). If f needs to be
additive in all arguments, we'll have to take another look
at this.
best
Robert Dodier