listlist subtract - part-cw/lambdanative GitHub Wiki
#(listlist-subtract m1 m2) listlist-subtract subtracts a matrix (list of lists) from another matrix (list of lists).
Parameter | Description |
---|---|
m1 | The first matrix (list of lists) |
m2 | The second matrix (list of lists) |
Example
Example 1: Add and subtract two matrices
> (listlist-add '((1 2) (3 4)) '((1 1) (2 2)))
((2 3) (5 6))
> (listlist-subtract '((1 2) (3 4)) '((1 1) (2 2)))
((0 1) (1 2))