Matrix with two diagonals: Difference between revisions
→{{header|Delphi}}
No edit summary |
|||
Line 712:
{{works with|Delphi|6.0}}
{{libheader|SysUtils,StdCtrls}}
It seems to me you should actually build the matricies, not just draw a bunch of numbers on the screen. Consequently, this code actually builds general purpose matrices to solve the problem. Once again, notice how the code is modular, breaking the operations down into separate subroutines that can be reused in other situations. This is how you build
<syntaxhighlight lang="Delphi">
Line 853:
[1 0 0 0 0 0 0 0 0 1]
</pre>
=={{header|Draco}}==
|