xxxxxxxxxx
var('x1,x2,x3,x4')
x=vector(SR,[x1,x2,x3,x4])
A=matrix(SR,[[8,-5,-2,-2],[-2,4,-4,1],
[-2,1,4,4],[4,1,3,10]])
b=vector(SR,[35,-8,-11,10])
Ab=A.augment(b,subdivide=True)
sAb=solve(list(A*x-b),x1,x2,x3,x4)
ppl=[['Decision Methods:'],
[Ab.rref()],[sAb],
[A.solve_right(b)],[A.inverse()*b],
['For the Linear System of Equations: '],[Ab]]
table(ppl)
No comments:
Post a Comment