Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Matrix_element_add Calculator

Matrix_element_add

-- Option variable: matrix_element_add Default value: +

matrix_element_add is the operation invoked in place of addition in a matrix multiplication. matrix_element_add can be assigned any n-ary operator (that is, a function which handles any number of arguments). The assigned value may be the name of an operator enclosed in quote marks, the name of a function, or a lambda expression.

matrix_element_add: lambda ([[x]], sqrt (apply ("+", x)));
 matrix_element_mult: lambda ([x, y], (x - y)^2);
 [a, b, c] . [x, y, z];
 aa: matrix ([a, b, c], [d, e, f]);
 bb: matrix ([u, v, w], [x, y, z]);
 aa . transpose (bb);

See also matrix_element_mult and matrix_element_transpose.

Example:

          (%i1) matrix_element_add: "*"$
          (%i2) matrix_element_mult: "^"$
          (%i3) aa: matrix ([a, b, c], [d, e, f]);
                                     [ a  b  c ]
          (%o3)                      [         ]
                                     [ d  e  f ]
          (%i4) bb: matrix ([u, v, w], [x, y, z]);
                                     [ u  v  w ]
          (%o4)                      [         ]
                                     [ x  y  z ]
          (%i5) aa . transpose (bb);
                               [  u  v  w   x  y  z ]
                               [ a  b  c   a  b  c  ]
          (%o5)                [                    ]
                               [  u  v  w   x  y  z ]
                               [ d  e  f   d  e  f  ]

(%o1)                                true
(%i2) 

Matrix_element_add Example

Related Examples

matrix_element_add

? matrix_element_add;

Calculate

matrix_element_add-matrix_element_mult-transpose

matrix_element_add: "*";

matrix_element_mult:...

aa: matrix ([a, b, c...

Calculate

matrix_element_add

? matrix_element_add;

Calculate

matrix_element_add-matrix_element_mult-transpose

matrix_element_add: "*";

matrix_element_mult:...

aa: matrix ([a, b, c...

Calculate