三階伴隨矩陣/逆矩陣及行列式(I)
程式編寫日期: 2006年10月24日
可以計算三階伴隨矩陣/逆矩陣及行列式,注意答案欄形式顯示。
程式(127步)
1 | ENT | 2. | Kin 4 | 3. | Kin 3 | 4. | × | 5. | ENT |
6. | Kin 5 | 7. | ENT | 8. | Min | 9. | Kin 6 | 10. | ENT |
11. | Kin × 6 | 12. | Kin 1 | 13. | ENT | 14. | Kin 2 | 15. | - |
16. | ENT | 17. | Kin × 3 | 18. | X←→K3 | 19. | Kin - 6 | 20. | Kout 1 |
21. | × | 22. | Kout 5 | 23. | + | 24. | ( | 25. | Kout 6 |
26. | + | 27. | ( | 28. | Kout 5 | 29. | × | 30. | Kout 3 |
31. | - | 32. | Kout 2 | 33. | × | 34. | MR | 35. | + |
36. | ( | 37. | Kout 5 | 38. | + | 39. | ( | 40. | Kout 4 |
41. | + | 42. | ( | 43. | Kout 2 | 44. | × | 45. | ENT |
46. | Kin 4 | 47. | ENT | 48. | Kin 5 | 49. | ENT | 50. | Kin 6 |
51. | - | 52. | Kout 3 | 53. | X←→K5 | 54. | Kin × 5 | 55. | X←→K5 |
56. | ) | 57. | HLT | 58. | ( | 59. | Kout 4 | 60 | × |
61. | Kout 3 | 62. | - | 63. | Kout 6 | 64. | X←→K1 | 65. | Kin × 1 |
66. | X←→K1 | 67. | ) | 68. | HLT | 69. | ( | 70. | Kout 1 |
71. | × | 72. | Kout 5 | 73. | - | 74. | Kout 4 | 75. | Kin × 2 |
76. | Kout 2 | 77 | ) | 78. | HLT | 79. | 0 | 80. | ) |
81. | Kin 1 | 82. | Kin 3 | 83. | 0 | 84. | ) | 85. | Kin 2 |
86. | ( | 87. | Kout 5 | 88. | Kin × 3 | 89. | × | 90. | MR |
91. | - | 92. | Kout 2 | 93. | × | 94. | Kout 6 | 95. | Kin × 1 |
96. | ) | 97. | HLT | 98. | ( | 99. | Kout 1 | 100. | - |
101. | MR | 102. | × | 103. | Kout 4 | 104. | Kin × 2 | 105. | ) |
106. | HLT | 107. | Kout 3 | 108. | Kin - 2 | 109. | Kout 2 | 110. | HLT |
111. | 0 | 112. | ) | 113. | Kin × 4 | 114. | HLT | 115. | 0 |
116. | ) | 117. | Kin × 5 | 118. | HLT | 119. | 0 | 120. | = |
121. | Kin × 6 | 122. | HLT | 123. | Kout 4 | 124. | Kin + 6 | 125. | Kout 5 |
126. | Kin + 6 | 127. | Kout 6 | 128. | 129. | 130. |
LRN 模式輸入程式(只供 fx-3800P使用,程式長度: 127步 )
ENT 1 | Kin 4 | Kin 3 | × | ENT 0 |
Kin 5 | ENT 0 | Min | Kin 6 | ENT 0 |
Kin × 6 | Kin 1 | ENT 1 | Kin 2 | - |
ENT 0 | Kin × 3 | X←→K3 | Kin - 6 | Kout 1 |
× | Kout 5 | + | ( | Kout 6 |
+ | ( | Kout 5 | × | Kout 3 |
- | Kout 2 | × | MR | + |
( | Kout 5 | + | ( | Kout 4 |
+ | ( | Kout 2 | × | ENT 0 |
Kin 4 | ENT 0 | Kin 5 | ENT 1 | Kin 6 |
- | Kout 3 | X←→K5 | Kin × 5 | X←→K5 |
) | HLT | ( | Kout 4 | × |
Kout 3 | - | Kout 6 | X←→K1 | Kin × 1 |
X←→K1 | ) | HLT | ( | Kout 1 |
× | Kout 5 | - | Kout 4 | Kin × 2 |
Kout 2 | ) | HLT | 0 | ) |
Kin 1 | Kin 3 | 0 | ) | Kin 2 |
( | Kout 5 | Kin × 3 | × | MR |
- | Kout 2 | × | Kout 6 | Kin × 1 |
) | HLT | ( | Kout 1 | - |
MR | × | Kout 4 | Kin × 2 | ) |
HLT | Kout 3 | Kin - 2 | Kout 2 | HLT |
0 | ) | Kin × 4 | HLT | 0 |
) | Kin × 5 | HLT | 0 | = |
Kin × 6 | HLT | Kout 4 | Kin + 6 | Kout 5 |
Kin + 6 | Kout 6 | MODE . |
例題: 計算下列矩陣的伴隨矩陣及逆矩陣。
按 P1 再按 2 RUN 1 RUN 3 RUN 7 RUN 4 RUN 6 RUN 8 RUN 9 RUN 7 RUN
(顯示第一欄的數值 -26) RUN (顯示 - 1) RUN (顯示 31) RUN
(顯示第二欄的數值 20) RUN (顯示 - 10) RUN (顯示 -10) RUN
(顯示第三欄的數值 - 6) RUN (顯示 9) RUN (顯示 1) RUN (顯示行列式的值為40)
因此,
註: 行列式的數值記存在K6。