Hi..
d1 = a1x1 + b1x2 + c1x3
d2 = a2x1 + b2x2 + c2x3
d3 = a3x1 + b3x2 + c3*x3
Knowing all of a,b,c,d, I have to find x1, x2, x3. As you might noticed, this is high school math. But, how do I write the code to solve this?
/*
/a1 b1 c1| /x1| /d1|
|a2 b2 c2|*|x2|=|d2|
|a3 b3 c3/ |x3/ |d3|
*/
double A[3][3], X[3], D[3];
X[0] = ?
X[1] = ?
X[2] = ?
Can anyone give me an idea please?