Hi..

d1 = a1*x1 + b1*x2 + c1*x3
d2 = a2*x1 + b2

*x2 + c2*x3

d3 = a3

*x1 + b3*x2 + 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?