Right Left System Solving

Description

Given a matrix $A$ and a vector$\vec{b}$, we can use the methods .solve_right() and .solve_left() to find a solution to the equations $A\vec{x} = \vec{b}$ and $\vec{x}A = \vec{b}$, respectively. Note that these methods will only provide one solution even if the equation has multiple solutions—if you need to find a solution set, it is better to use the rref method.

Sage Cell

Code

A = matrix([[1, 2, 3], [4, 5, 6], [7, 8, -1]])
b = vector([24, 63, 52])
left = A.solve_left(b)
right = A.solve_right(b)
print(left, right)

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: 17 Feb 2020 15:50

Submitted by: Zane Corbiere

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