Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. [
  2. begin{pmatrix}[ccc|c]
  3. 1&2&0&0\
  4. -1&1&2&0\
  5. 1&0&1&5\
  6. 0&-2&1&4
  7. end{pmatrix}
  8. ]
  9. [
  10. begin{pmatrix}[ccc|c]
  11. 1&2&0&0\
  12. 0&3&2&0\
  13. 0&-2&1&5\
  14. 0&-2&1&4
  15. end{pmatrix}
  16. ]
  17.  
  18. documentclass{article}
  19. begin{document}
  20. [
  21. left(begin{array}{@{}ccc|c@{}}
  22. 1 & 2 & 0 & 0 \
  23. -1 & 1 & 2 & 0 \
  24. 1 & 0 & 1 & 5 \
  25. 0 & -2 & 1 & 4
  26. end{array}right)
  27. sim
  28. left(begin{array}{@{}ccc|c@{}}
  29. 1 & 2 & 0 & 0 \
  30. 0 & 3 & 2 & 0 \
  31. 0 & -2 & 1 & 5 \
  32. 0 & -2 & 1 & 4
  33. end{array}right)
  34. ]
  35. end{document}
  36.  
  37. documentclass{article}
  38. newenvironment{rowequmat}[1]{left(array{@{}#1@{}}}{endarrayright)}
  39. begin{document}
  40. [
  41. begin{rowequmat}{ccc|c}
  42. 1 & 2 & 0 & 0 \
  43. -1 & 1 & 2 & 0 \
  44. 1 & 0 & 1 & 5 \
  45. 0 & -2 & 1 & 4
  46. end{rowequmat}
  47. sim
  48. begin{rowequmat}{ccc|c}
  49. 1 & 2 & 0 & 0 \
  50. 0 & 3 & 2 & 0 \
  51. 0 & -2 & 1 & 5 \
  52. 0 & -2 & 1 & 4
  53. end{rowequmat}
  54. ]
  55. end{document}
  56.  
  57. documentclass{article}
  58. usepackage{amsmath}
  59. usepackage{array}
  60.  
  61. newenvironment{redmatrix}
  62. {left(array{@{}rrr|c@{}}}
  63. {endarrayright)}
  64. newenvironment{ropmatrix}
  65. {array{@{}c@{}}}
  66. {endarray}
  67. newcommandopone[2]{xrightarrow{(#1)times r_#2}}
  68. newcommandoptwo[3]{xrightarrow{r_#1{}+{} #2r_#3}}
  69.  
  70. begin{document}
  71. begin{alignat*}{5}
  72. &
  73. begin{redmatrix}
  74. 1&2&0&0\
  75. -1&1&2&0\
  76. 1&0&1&5\
  77. 0&-2&1&4
  78. end{redmatrix}
  79. &
  80. begin{ropmatrix}
  81. optwo{1}{}{2}
  82. end{ropmatrix}
  83. &
  84. begin{redmatrix}
  85. 1&2&0&0\
  86. 0&3&2&0\
  87. 0&-2&1&5\
  88. 0&-2&1&4
  89. end{redmatrix}
  90. &
  91. begin{ropmatrix}
  92. opone{1/3}{2}
  93. end{ropmatrix}
  94. &
  95. begin{redmatrix}
  96. 1&2&0&0\
  97. 0&1&2/3&0\
  98. 0&-2&1&5\
  99. 0&-2&1&4
  100. end{redmatrix}\
  101. &&
  102. begin{ropmatrix}
  103. optwo{3}{2}{2}\
  104. optwo{4}{2}{2}\
  105. end{ropmatrix}
  106. &
  107. begin{redmatrix}
  108. 1&2&0&0\
  109. 0&1&2/3&0\
  110. 0&0&7/3&5\
  111. 0&0&7/3&4
  112. end{redmatrix}
  113. &
  114. begin{ropmatrix}
  115. opone{3/7}{3}
  116. end{ropmatrix}
  117. &
  118. begin{redmatrix}
  119. 1&2&0&0\
  120. 0&1&2/3&0\
  121. 0&0&1&15/7\
  122. 0&0&7/3&4
  123. end{redmatrix}
  124. end{alignat*}
  125.  
  126. end{document}
  127.  
  128. documentclass{article}
  129. usepackage{array}
  130. begin{document}
  131. [
  132. left(begin{array}{@{}rrr|c@{}}
  133. 1&2&0&0\
  134. -1&1&2&0\
  135. 1&0&1&5\
  136. 0&-2&1&4
  137. end{array}right)
  138. quad
  139. left(begin{array}{@{}rrr|c@{}}
  140. 1&2&0&0\
  141. 0&3&2&0\
  142. 0&-2&1&5\
  143. 0&-2&1&4
  144. end{array}right)
  145. ]
  146. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement