Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. Task1
  2. Is matrix A equal to matrix B?
  3. True
  4. Matrix A multiplied with 3.14159265359
  5. Matrix A divided with 3.14159265359
  6. Is matrix A equal to itself after multiplication and division with real number?
  7. True
  8. ------------------
  9. Task2
  10. LU decomposition:
  11. Impossible to perform LU decomposition because pivot element is too small for division!
  12. LUP decomposition:
  13. Lower:
  14. 0 1 2
  15. 0 1.00 0.0 0
  16. 1 0.25 1.0 0
  17. 2 0.75 -0.0 1
  18. Upper:
  19. 0 1 2
  20. 0 4.0 12.0 12.0
  21. 1 0.0 -4.0 -2.0
  22. 2 0.0 0.0 -3.0
  23. Solution
  24. 0
  25. 0 3.0
  26. 1 1.0
  27. 2 -1.0
  28. ------------------
  29. Task3
  30. LU decomposition:
  31. Lower:
  32. 0 1 2
  33. 0 1.0 0.0 0
  34. 1 4.0 1.0 0
  35. 2 7.0 2.0 1
  36. Upper:
  37. 0 1 2
  38. 0 1.0 2.0 3.0
  39. 1 0.0 -3.0 -6.0
  40. 2 0.0 0.0 0.0
  41. Impossible to carry out backward substitution because element is too small for division!
  42. ------------------
  43. Task4
  44. LU decomposition:
  45. Lower:
  46. 0 1 2
  47. 0 1.000000e+00 0.0 0
  48. 1 1.000000e+12 1.0 0
  49. 2 2.000000e+12 2.0 1
  50. Upper:
  51. 0 1 2
  52. 0 0.000001 3.000000e+06 2.000000e+06
  53. 1 0.000000 -3.000000e+18 -2.000000e+18
  54. 2 0.000000 0.000000e+00 -2.000896e+06
  55. Solution
  56. 0
  57. 0 1.000240
  58. 1 1.999318
  59. 2 3.001024
  60. LUP decomposition:
  61. Lower:
  62. 0 1 2
  63. 0 1.000000e+00 0.0 0
  64. 1 5.000000e-13 1.0 0
  65. 2 5.000000e-01 0.5 1
  66. Upper:
  67. 0 1 2
  68. 0 2000000.0 1.000000e+06 2.000000e+06
  69. 1 0.0 3.000000e+06 2.000000e+06
  70. 2 0.0 0.000000e+00 1.000000e+06
  71. Solution
  72. 0
  73. 0 1.0
  74. 1 2.0
  75. 2 3.0
  76. ------------------
  77. Task5
  78. LUP decomposition:
  79. Lower:
  80. 0 1 2
  81. 0 1.000000 0.0 0
  82. 1 0.666667 1.0 0
  83. 2 0.000000 -0.3 1
  84. Upper:
  85. 0 1 2
  86. 0 3.0 5.000000 1.000000
  87. 1 0.0 -3.333333 2.333333
  88. 2 0.0 0.000000 2.700000
  89. Solution
  90. 0
  91. 0 -1.036208e-15
  92. 1 5.329071e-16
  93. 2 3.000000e+00
  94. ------------------
  95. Task6
  96. LUP decomposition:
  97. Lower:
  98. 0 1 2
  99. 0 1.000000e+00 0.000000e+00 0
  100. 1 1.000000e-09 1.000000e+00 0
  101. 2 7.500000e-20 4.250000e-10 1
  102. Upper:
  103. 0 1 2
  104. 0 4.000000e+09 1.000000e+09 3.000000e+09
  105. 1 0.000000e+00 1.000000e+00 4.000000e+00
  106. 2 0.000000e+00 0.000000e+00 -1.725000e-09
  107. Impossible to carry out backward substitution because element is too small for division!
  108. ------------------
  109. Task7
  110. Matrix inverse:
  111. Impossible to carry out backward substitution because element is too small for division!
  112. ------------------
  113. Task8
  114. Matrix inverse:
  115. 0 1 2
  116. 0 -0.0 -3.0 -2.0
  117. 1 1.0 -4.0 -2.0
  118. 2 -3.0 4.0 1.0
  119. ------------------
  120. Task9
  121. Matrix determinant:
  122. 1.0
  123. ------------------
  124. Task10
  125. Matrix determinant:
  126. 48.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement