Homework for Friday

Section 2.2     Numbers:  4,8,10,32*,47,50*   for   Friday, February 16

Solving linear equations with the computer

Mathematica

In Mathematica, we solve the system Ax=b as follows:
LinearSolve[{{3,-1,-1},{-1,2,-1},{-1,-1,3}},{0,0,9}]
or with
Solve[{3x-y-z==0,-x+2y-z==0,-x-y+3z==9},{x,y,z}]
The reduced row echelon form can be obtained as follows:
RowReduce[{{3,-1,-1,0},{-1,2,-1,0},{-1,-1,3,9}}]

Maple

In Maple, we solve the system Ax=b as follows:
with(linalg):
A:=array([[3,-1,-1],[-1,2,-1],[-1,-1,3]]):
b:=array([0,0,9]):
linsolve(A,b);