Matrix Addition

Description

The Sage commands for calculating the sum of two matrices, $A + B$, where

(1)
\begin{align} A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} \quad \text{and} \quad B = \begin{pmatrix} -4 & 3 \\ -2 & 6 \end{pmatrix}. \end{align}

Sage Cell

Code

A = matrix([[1,2],[3,4]])
B = matrix([[-4,3],[-2,6]])
A + B

Options

None

Tags

CC:math.la.i.mat.sum

Primary Tags: Linear Algebra: Matrices.

Secondary Tags: Matrices: Matrix algebra.

Related Cells

Attribute

Permalink:

Author: T. Judson

Date: 19 Jul 2017 09:18

Submitted by: Tom Judson

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License