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), &nbsp; the &nbsp; &nbsp; <big>'''/ 1'''</big> &nbsp; &nbsp; (a division by unity performs
If trailing zeros are wanted after the decimal point for values of zero (0), &nbsp; the &nbsp; &nbsp; <big><big>'''/ 1'''</big></big> &nbsp; &nbsp; (a division by unity performs
<br>REXX number normalization) &nbsp; can be removed from the line &nbsp; (number 40) &nbsp; which contains the source statement:
<br>REXX number normalization) &nbsp; can be removed from the line &nbsp; (number 40) &nbsp; which contains the source statement:
::::: &nbsp; <b> z=z &nbsp; right( format(@.row.col, , &nbsp; dPlaces) / 1, &nbsp; width) </b>
::::: &nbsp; <b> z=z &nbsp; right( format(@.row.col, , &nbsp; dPlaces) / 1, &nbsp; &nbsp; 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. */