additive SciMax Toolbox addrow

SciMax Toolbox >> addmatrices

addmatrices

Maxima Function

Calling Sequence

addmatrices (f, M_1, ..., M_n)

Description

Using the function f as the addition function, return the sum of the matrices M_1, ..., M_n. The function f must accept any number of arguments (a Maxima nary function).

Examples:

(%i1) m1 : matrix([1,2],[3,4])$
(%i2) m2 : matrix([7,8],[9,10])$
(%i3) addmatrices('max,m1,m2);
(%o3) matrix([7,8],[9,10])
(%i4) addmatrices('max,m1,m2,5*m1);
(%o4) matrix([7,10],[15,20])
additive SciMax Toolbox addrow