Multiple regression: Difference between revisions
Content added Content deleted
(Added Algol 68 translation of Visual Basic.NET) |
(→{{header|ALGOL 68}}: Fixed Trans) |
||
Line 360: | Line 360: | ||
=={{header|ALGOL 68}}== |
=={{header|ALGOL 68}}== |
||
{{Trans| |
{{Trans|Visual_Basic.NET}}...but using the "to reduced echelon form" routine from [[Reduced row echelon form#ALGOL_68]]. |
||
<br>The main differences are that Algol 68 generally uses a lower bound of 1 rather than 0 for arrays. |
<br>The main differences are that Algol 68 generally uses a lower bound of 1 rather than 0 for arrays. |
||
<br>Also, although <code>( ( 1, 2, 3 ), ( 6, 5, 4 ) )</code> is a 2x3 array, <code>( ( 1, 2, 3 ) )</code> is a 3x1 array (because <code>( x )</code> is not an array, so the outer brackets are superfluous, leaving <code>( 1, 2, 3 )</code> - i.e. a 1-dimensoional array - as the context requires a two-dimensional array, each value is coerced to an array resulting in a 3x1 two-dimensional array). |
<br>Also, although <code>( ( 1, 2, 3 ), ( 6, 5, 4 ) )</code> is a 2x3 array, <code>( ( 1, 2, 3 ) )</code> is a 3x1 array (because <code>( x )</code> is not an array, so the outer brackets are superfluous, leaving <code>( 1, 2, 3 )</code> - i.e. a 1-dimensoional array - as the context requires a two-dimensional array, each value is coerced to an array resulting in a 3x1 two-dimensional array). |