I am new to matrix solutions in VB. I want to solve a matrix (3x3) in my program written in VB.NET (with matrix addition, multiplication and division). Just simple Matrix like Ax=B, with 3 unknowns. I want to solve that 3 unknowns (x). A and B known. Anyone can suggest a simple method or an simple algorithm to solve this?

There is no such thing as "matrix solutions in VB". And this is not VB, but VB.NET. You can write it by yourself. All you need to know is matrix algebra itself. What's you problem? Matrix representation? Array like double[3,3]. Write it, and ask a question if you face any problems. --SA

Thanks, Just I want to solve linear equations with 3 unknowns. I can define matrix and feed data or get data from another arrays. Also can do arithmetic operations. But my knowledge is poor to solve linear equations. Example: I have a matrix like Ax=B. Data for A, x and B matrix come from series of calculations. When I use least square method to solve this matrix, I get three equations like (data are not real)

--SA

Example: I have a matrix like Ax=B. Data for A, x and B matrix come from series of calculations. When I use least square method to solve this matrix, I get three equations like (data are not real)

5x1 + 0 + 10x3 = 1

0 + 10x2 + 0 = 0

10x1 + 0 + 34x3 = 0

my data:

A=[5,0,10,0,10,0,10,0,34]

B=[1,0,0]

x=[x1,x2,x3]

so I want to solve x1, x2 and x3

manual solution is: x1=34/70, x2=0, x3=-10/70

Can you suggest any method?

Thanks!