mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 07:21:43 +00:00
Update app.js
This commit is contained in:
parent
b98901c75a
commit
5e1f41b48a
5
app.js
5
app.js
|
@ -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);
|
||||
|
||||
|
|
|
@ -1471,7 +1471,7 @@ 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++;
|
||||
|
|
Loading…
Reference in New Issue
Block a user