Cholesky decomposition: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: changed line number to match the new program.) |
m (→{{header|REXX}}: added whitespace to section header comment (of a statement).) |
||
Line 1,996: | Line 1,996: | ||
If trailing zeroes are wanted after the decimal point for values of zero (0), the <big>'''/1'''</big> (division by one performs |
If trailing zeroes are wanted after the decimal point for values of zero (0), the <big>'''/1'''</big> (division by one performs |
||
<br>REXX number normalization) can be removed from the line (number 40) which contains the source statement: |
<br>REXX number normalization) can be removed from the line (number 40) which contains the source statement: |
||
::::: <b> z=z right( format(@.row.col,, dPlaces) / 1, width) </b> |
|||
<lang rexx>/*REXX program performs the Cholesky decomposition on a square matrix. */ |
<lang rexx>/*REXX program performs the Cholesky decomposition on a square matrix. */ |
||
niner = '25 15 -5' , /*define a 3x3 matrix. */ |
niner = '25 15 -5' , /*define a 3x3 matrix. */ |