Gaussian elimination: Difference between revisions

m
→‎{{header|Raku}}: Fix link: Perl 6 --> Raku
m (→‎{{header|Sidef}}: Fix link: Perl 6 --> Raku)
m (→‎{{header|Raku}}: Fix link: Perl 6 --> Raku)
Line 3,855:
(formerly Perl 6)
{{works with|Rakudo|2018.03}}
Gaussian elimination results in a matrix in row echelon form. Gaussian elimination with back-substitution (also known as Gauss-Jordan elimination) results in a matrix in reduced row echelon form. That being the case, we can reuse much of the code from the [[Reduced row echelon form]] task. Perl 6Raku stores and does calculations on decimal numbers within its limit of precision using Rational numbers by default, meaning the calculations are exact.
 
<lang perl6>sub gauss-jordan-solve (@a, @b) {
2,392

edits