Cholesky decomposition: Difference between revisions
Content added Content deleted
(Add Swift) |
m (→{{header|REXX}}: added better highlighting, added spacing to match the REXX statement.) |
||
Line 2,610: | Line 2,610: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
If trailing zeros are wanted after the decimal point for values of zero (0), the <big>'''/ 1'''</big> (a division by unity performs |
If trailing zeros are wanted after the decimal point for values of zero (0), the <big><big>'''/ 1'''</big></big> (a division by unity 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> |
::::: <b> z=z right( format(@.row.col, , dPlaces) / 1, width) </b> |
||
<lang rexx>/*REXX program performs the Cholesky decomposition on a square matrix & displays results*/ |
<lang rexx>/*REXX program performs the Cholesky decomposition on a square matrix & displays results*/ |
||
niner = '25 15 -5' , /*define a 3x3 matrix with elements. */ |
niner = '25 15 -5' , /*define a 3x3 matrix with elements. */ |