## Solve set of equations using Sage

Given the set of equations:

$$\begin{bmatrix} 5 & 0 & 0 \\ 0 & 10 & 0 \\ 0 & 0 & 15 \end{bmatrix} \times \left[ \begin{array}{c} x_1 \\ x_2 \\ x_3 \end{array} \right] = \left[ \begin{array}{c} 1 \\ 2 \\ 3 \end{array} \right]$$

Below is how to solve them using Sage:

The output:

In order to get the output as floating point numbers use the numerical_approx function:

The output: