summation for diagonals
if ( j == i ) { for ( var k = 0 ; k < j ; k ++ ) sum += parseInt ( Math . pow ( lower [ j ] [ k ] , 2 ) ) ; lower [ j ] [ j ] = parseInt ( Math . sqrt ( matrix [ j ] [ j ] - sum ) ) ; } else {