Original matrix:
    1.000000    0.000000    0.000000
    0.000000    2.000000    0.000000
    0.000000    0.000000    3.000000

Product of Q and R matrices:
    1.000000    0.000000    0.000000
    0.000000    2.000000    0.000000
    0.000000    0.000000    3.000000

Q matrix of the decomposition:
   -1.000000    0.000000    0.000000
    0.000000   -1.000000    0.000000
    0.000000    0.000000    1.000000

R matrix of the decomposition:
   -1.000000    0.000000    0.000000
    0.000000   -2.000000    0.000000
    0.000000    0.000000    3.000000
Updated matrix:
    2.000000    1.000000    1.000000
    0.000000    2.000000    0.000000
    0.000000    0.000000    3.000000

Product of new Q and R matrices:
    2.000000    1.000000    1.000000
    0.000000    2.000000    0.000000
    0.000000    0.000000    3.000000

New Q matrix:
   -1.000000    0.000000    0.000000
    0.000000   -1.000000    0.000000
    0.000000    0.000000    1.000000

New R matrix:
   -2.000000   -1.000000   -1.000000
    0.000000   -2.000000    0.000000
    0.000000    0.000000    3.000000

***********************************
press return for next problem:
Original matrix:
    1.000000    2.000000    3.000000
    2.000000    2.000000    3.000000
    3.000000    3.000000    3.000000

Product of Q and R matrices:
    1.000000    2.000000    3.000000
    2.000000    2.000000    3.000000
    3.000000    3.000000    3.000000

Q matrix of the decomposition:
   -0.267261    0.963624    0.000000
   -0.534522   -0.148250   -0.832050
   -0.801784   -0.222375    0.554700

R matrix of the decomposition:
   -3.741657   -4.008919   -4.810702
    0.000000    0.963624    1.778998
    0.000000    0.000000   -0.832050
Updated matrix:
    2.000000    4.000000    6.000000
    3.000000    4.000000    6.000000
    4.000000    5.000000    6.000000

Product of new Q and R matrices:
    2.000000    4.000000    6.000000
    3.000000    4.000000    6.000000
    4.000000    5.000000    6.000000

New Q matrix:
    0.371391    0.918260   -0.137360
    0.557086   -0.102029    0.824163
    0.742781   -0.382608   -0.549442

New R matrix:
    5.385165    7.427814   10.027549
    0.000000    1.351882    2.601736
    0.000000    0.000000    0.824164

***********************************
press return for next problem:
Original matrix:
    1.000000    2.000000    3.000000    4.000000    5.000000
    2.000000    3.000000    4.000000    5.000000    1.000000
    3.000000    4.000000    5.000000    1.000000    2.000000
    4.000000    5.000000    1.000000    2.000000    3.000000
    5.000000    1.000000    2.000000    3.000000    4.000000

Product of Q and R matrices:
    1.000000    1.999999    2.999999    4.000000    4.999999
    2.000000    3.000000    4.000000    5.000000    1.000000
    3.000000    4.000000    5.000000    1.000000    1.999999
    4.000000    5.000000    0.999999    2.000000    3.000000
    5.000000    0.999999    2.000000    3.000000    3.999999

Q matrix of the decomposition:
   -0.134840   -0.277161   -0.351340    0.467892   -0.750092
   -0.269680   -0.319801   -0.387069    0.494377    0.656330
   -0.404520   -0.362441   -0.422799   -0.723908   -0.046881
   -0.539360   -0.405081    0.732454    0.079453   -0.046881
   -0.674200    0.724882   -0.107188    0.079453   -0.046881

R matrix of the decomposition:
   -7.416199   -6.067799   -5.393599   -5.393600   -6.067799
    0.000000   -4.264014   -2.878209   -1.705606   -0.746201
    0.000000    0.000000   -4.198214   -2.620161   -1.220757
    0.000000    0.000000    0.000000    4.016809    1.942193
    0.000000    0.000000    0.000000    0.000000   -3.516054
Updated matrix:
    2.000000    4.000000    6.000000    8.000000   10.000000
    3.000000    5.000000    7.000000    9.000000    6.000000
    4.000000    6.000000    8.000000    5.000000    7.000000
    5.000000    7.000000    4.000000    6.000000    8.000000
    6.000000    3.000000    5.000000    7.000000    9.000000

Product of new Q and R matrices:
    2.000000    3.999999    5.999998    7.999999    9.999998
    3.000000    5.000001    7.000000    9.000001    6.000000
    4.000000    6.000000    7.999999    4.999998    6.999998
    4.999999    6.999999    3.999998    5.999999    7.999997
    6.000000    3.000000    5.000000    7.000000    8.999998

New Q matrix:
    0.210818    0.363730    0.378491    0.449408    0.691399
    0.316228    0.340997    0.341625    0.391043   -0.717007
    0.421637    0.318264    0.304760   -0.790841    0.051215
    0.527046    0.295531   -0.788934    0.099220    0.051215
    0.632456   -0.750194    0.157295    0.099220    0.051215

New R matrix:
    9.486833   10.540926   12.122064   14.230249   16.865479
    0.000000    4.887626    4.546628    4.091966    3.523636
    0.000000    0.000000    4.731143    3.993822    3.072170
    0.000000    0.000000    0.000000    4.450304    2.991188
    0.000000    0.000000    0.000000    0.000000    3.841106

***********************************
press return for next problem:
Original matrix:
    1.400000    2.100000    2.100000    7.400000    9.600000
    1.600000    1.500000    1.100000    0.700000    5.000000
    3.800000    8.000000    9.600000    5.400000    8.800000
    4.600000    8.200000    8.400000    0.400000    8.000000
    2.600000    2.900000    0.100000    9.600000    7.700000

Product of Q and R matrices:
    1.400000    2.099999    2.100001    7.400000    9.599998
    1.600000    1.500000    1.099999    0.700000    5.000000
    3.800000    7.999999    9.600001    5.400001    8.799998
    4.600000    8.199999    8.400001    0.400000    8.000000
    2.600000    2.899999    0.099999    9.600000    7.699999

Q matrix of the decomposition:
   -0.204472   -0.126500   -0.267185    0.701215   -0.615710
   -0.233682   -0.501530   -0.735648   -0.109596    0.375061
   -0.554996    0.568875   -0.017165    0.361839    0.486970
   -0.671837    0.099968   -0.000307   -0.576640   -0.454013
   -0.379734   -0.631549    0.622205    0.181233    0.192258

R matrix of the decomposition:
   -6.846897  -11.830175  -11.695810   -8.587833  -16.313959
    0.000000    2.521295    5.420437   -4.238126   -2.779134
    0.000000    0.000000   -1.475441    3.388234   -1.605743
    0.000000    0.000000    0.000000    8.575391    6.150247
    0.000000    0.000000    0.000000    0.000000   -1.901891
Updated matrix:
    5.800000   12.330000   11.340000    7.840000   14.110001
    8.000000   16.380001   14.540000    1.340000   11.559999
   22.599998   51.709999   49.079994    7.280000   28.070000
   41.000000   92.830002   84.840004    4.040000   45.310001
    3.000000    3.830000    0.940000    9.640000    8.110000

Product of new Q and R matrices:
    5.799998   12.329995   11.339995    7.839999   14.109995
    8.000000   16.380001   14.539998    1.339999   11.559999
   22.599998   51.710003   49.079994    7.280000   28.069998
   41.000000   92.830002   84.839989    4.040001   45.310005
    2.999999    3.829997    0.939998    9.639998    8.109996

New Q matrix:
    0.120980   -0.215025    0.354002    0.457916   -0.777253
    0.166870   -0.473091    0.451814   -0.734371   -0.070020
    0.471407    0.194186    0.626976    0.320647    0.494120
    0.855207    0.076312   -0.465851   -0.124878   -0.173742
    0.062576   -0.828503   -0.245827    0.364146    0.341516

New R matrix:
   47.941635  108.229958   99.549385    8.662200   56.125336
    0.000000    3.551716    5.909012   -8.584536   -6.313612
    0.000000    0.000000    1.601846    3.693384    4.715780
    0.000000    0.000000    0.000000    7.946180    4.267425
    0.000000    0.000000    0.000000    0.000000   -3.009090

***********************************
press return for next problem: