Equation solver
Equation solver
(OP)
Dear all,
Hello !!
Eq.1 : a1X1+b1X2+c1X3+d1X4+.....+t1X20=3825;
..
..
..
Eq. 20 : a20X1+b20X2+c20X3+d20X4+......+t20x20=4520
where a,b,c ...t =coefficient are known; there are 20 such equations, is it possible to solve the equation and to find out X1 to X20 value through any software ? How ?
The data is available with as attached.Kindly refer sheet 1.
http ://files.e ngineering .com/getfi le.aspx?fo lder=c73ce 005-334f-4 a68-bed4-3 44c8002f13 0&file =Matlab_An alysis.xls
Hello !!
Eq.1 : a1X1+b1X2+c1X3+d1X4+.....+t1X20=3825;
..
..
..
Eq. 20 : a20X1+b20X2+c20X3+d20X4+......+t20x20=4520
where a,b,c ...t =coefficient are known; there are 20 such equations, is it possible to solve the equation and to find out X1 to X20 value through any software ? How ?
The data is available with as attached.Kindly refer sheet 1.
http
RE: Equation solver
- Steve
RE: Equation solver
You have a matrix A, vector X and solution vector b.
So you have A * X = b and you wanna know the vector X.
So in matlab, you fill in the matrix with your coefficients, then type on the following line B = inv(A); This will inverse your matrix.
Then compute B*b'; (dont forget to put a ' behind the b, it indicates you take the transpose of your vector b so the rowvector becomes a columnvector)
The solution will be a vector with your solution, from x1 to x20 in order.
RE: Equation solver
>> help \
or more verbosely
>> help mldivide
Computing the inverses of large matrices is pretty expensive.
- Steve
RE: Equation solver
actually, this b answer is nothing but we can say a1x1+b1x2+c1x3+.....+t1x20 = b ;where b is known, a1,b1,...t20 is known but x1,x2 ,x3 are not known. like that equation is there.
similary , a2x1+b2x2+c2x3+.......+t2x20 = c ; where c is known, a2,x2...t2 are known but x1,x2,x3 ....are not known which is same as in section 1. basically, a1,a2...etc. are stream composition which is known through laboratery while x1,x2...x20 are 20 different streams flow is not known which is to be find out,ultimately all 20 streams mix to the main stream where composition and total flow is known that is why b,c..on right side is known. like this way.as attached in sheet.
RE: Equation solver
http:
Note how the "General Form" matches your problem statement.
- Steve
RE: Equation solver
RE: Equation solver
RE: Equation solver
h
You may find something in there that's useful. Alternatively, ask some of the specialists in the comp.soft-sys.matlab newsgroup. There are many people well versed in linear equations and their nuances.
- Steve