Vector Addition & Subtraction

Description

Here is a Sage cell that adds the vectors $a$ and $b$:

(1)
\begin{align} a=<1, 2, 3>\\ b=<4, 5, 6> \end{align}

Sage Cell

Here is a Sage cell that subtracts the vectors $a$ and $b$:

Code

a = vector([1, 2, 3])
b = vector([4, 5, 6])
a + b
a = vector([1, 2, 3])
b = vector([4, 5, 6])
a - b

Options

none

Tags

Primary Tags:

Secondary Tags:

A list of possible tags can be found at The WeBWorK Open Problem Library. For linear algebra tags see the Curated Courses Project.

Related Cells

Any related cells go here. Provide a link to the page containing the information about the cell.

Attribute

Permalink:

Author:

Date: 04 Mar 2019 22:16

Submitted by: Zane Corbiere

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