Update app.js

This commit is contained in:
Namhyeon Go 2024-11-15 05:27:22 +09:00
parent b98901c75a
commit 5e1f41b48a
2 changed files with 6 additions and 3 deletions

5
app.js
View File

@ -82,7 +82,10 @@ var console = {
}
}
var message = type + ": " + messages.join(' ');
var message = messages.join(' ');
if (typeof type !== "undefined") {
message = type + ": " + message;
}
this._echoDefault(message);
this._messages.push(message);

View File

@ -1471,8 +1471,8 @@ matrix.determinant = function (m) {
while (numberOfAddedRows < numRow - 1) {
newArray.push(m[numberOfAddedRows + 1].slice(0, indexColumn).concat(m[numberOfAddedRows + 1].slice(indexColumn + 1)));
numberOfAddedRows++;
}
}
result += Math.pow(-1, indexColumn) * m[0][indexColumn] * matrix.determinant(newArray);
indexColumn++;
}