Write a program to realize the above hierarchy. Create necessary member functions (constructor) to initialize and diaplay necessary information.
x1 – 4x2 + 7x3 = g
3x2 – 5x3 = h
-2x1 + 5x2 – 9x3 = k
$$ A=\begin{bmatrix} 1 & -3 & -3\\ 1 & 5 & 1\\ 1 & 7 & 2\\ \end{bmatrix}, b= \begin{bmatrix} 5\\ -3\\ -5\\ \end{bmatrix}$$
and compute the associated least square error.
Share this link via
Or copy link