Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
26
Task/QR-decomposition/Stata/qr-decomposition.stata
Normal file
26
Task/QR-decomposition/Stata/qr-decomposition.stata
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
mata
|
||||
: qrd(a=(12,-51,4\6,167,-68\-4,24,-41),q=.,r=.)
|
||||
|
||||
: a
|
||||
1 2 3
|
||||
+-------------------+
|
||||
1 | 12 -51 4 |
|
||||
2 | 6 167 -68 |
|
||||
3 | -4 24 -41 |
|
||||
+-------------------+
|
||||
|
||||
: q
|
||||
1 2 3
|
||||
+----------------------------------------------+
|
||||
1 | -.8571428571 .3942857143 .3314285714 |
|
||||
2 | -.4285714286 -.9028571429 -.0342857143 |
|
||||
3 | .2857142857 -.1714285714 .9428571429 |
|
||||
+----------------------------------------------+
|
||||
|
||||
: r
|
||||
1 2 3
|
||||
+----------------------+
|
||||
1 | -14 -21 14 |
|
||||
2 | 0 -175 70 |
|
||||
3 | 0 0 -35 |
|
||||
+----------------------+
|
||||
Loading…
Add table
Add a link
Reference in a new issue