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._echoDefault(message);
|
||||||
this._messages.push(message);
|
this._messages.push(message);
|
||||||
|
|
||||||
|
|
|
@ -1471,8 +1471,8 @@ matrix.determinant = function (m) {
|
||||||
while (numberOfAddedRows < numRow - 1) {
|
while (numberOfAddedRows < numRow - 1) {
|
||||||
newArray.push(m[numberOfAddedRows + 1].slice(0, indexColumn).concat(m[numberOfAddedRows + 1].slice(indexColumn + 1)));
|
newArray.push(m[numberOfAddedRows + 1].slice(0, indexColumn).concat(m[numberOfAddedRows + 1].slice(indexColumn + 1)));
|
||||||
numberOfAddedRows++;
|
numberOfAddedRows++;
|
||||||
}
|
}
|
||||||
|
|
||||||
result += Math.pow(-1, indexColumn) * m[0][indexColumn] * matrix.determinant(newArray);
|
result += Math.pow(-1, indexColumn) * m[0][indexColumn] * matrix.determinant(newArray);
|
||||||
indexColumn++;
|
indexColumn++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user