diff --git a/app.js b/app.js index fd4b6da8..6e31891f 100644 --- a/app.js +++ b/app.js @@ -639,7 +639,7 @@ if (typeof JSON === "undefined") { require("app/assets/js/core-js-3.38.0.minified"); // Squel.js SQL query string builder for Javascript -var squel = require("app/assets/js/squel-basic-5.13.0.hiddentao-afa1cb5.wsh"); +var squel = require("app/assets/js/squel-basic-5.13.0-afa1cb5.wsh"); // JavaScript YAML parser and dumper. var yaml = require("app/assets/js/js-yaml-4.1.0.wsh"); diff --git a/app/assets/js/jquery.html5-placeholder-shim.jcampbell1-5a87f05.js b/app/assets/js/jquery.html5-placeholder-shim-5a87f05.js similarity index 100% rename from app/assets/js/jquery.html5-placeholder-shim.jcampbell1-5a87f05.js rename to app/assets/js/jquery.html5-placeholder-shim-5a87f05.js diff --git a/app/assets/js/numbers-0.7.0.wsh.js b/app/assets/js/numbers-0.7.0.wsh.js index 56800303..0725cf1c 100644 --- a/app/assets/js/numbers-0.7.0.wsh.js +++ b/app/assets/js/numbers-0.7.0.wsh.js @@ -1443,6 +1443,7 @@ matrix.determinant = function (m) { return m[0][0] * m[1][1] - m[0][1] * m[1][0]; } + /* for (col = 0; col < numCol; col++) { diagLeft = m[0][col]; diagRight = m[0][col]; @@ -1454,8 +1455,29 @@ matrix.determinant = function (m) { det += diagRight - diagLeft; } - + return det; + */ + + // new algorithm for matrix determinant #161 @youngbizman + // https://github.com/numbers/numbers.js/pull/161 + // https://github.com/numbers/numbers.js/issues/160 + var indexColumn = 0; + var result = 0; + var numberOfAddedRows = 0; + while (indexColumn < numCol) { + numberOfAddedRows = 0; + var newArray = new Array(); + 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++; + } + + return result; }; /** diff --git a/app/assets/js/respond-1.4.2.edited.js b/app/assets/js/respond-1.4.2.wsh.js similarity index 100% rename from app/assets/js/respond-1.4.2.edited.js rename to app/assets/js/respond-1.4.2.wsh.js diff --git a/app/assets/js/selectivizr-1.0.2.edited.js b/app/assets/js/selectivizr-1.0.2.wsh.js similarity index 100% rename from app/assets/js/selectivizr-1.0.2.edited.js rename to app/assets/js/selectivizr-1.0.2.wsh.js diff --git a/app/assets/js/squel-basic-5.13.0.hiddentao-afa1cb5.wsh.js b/app/assets/js/squel-basic-5.13.0-afa1cb5.wsh.js similarity index 100% rename from app/assets/js/squel-basic-5.13.0.hiddentao-afa1cb5.wsh.js rename to app/assets/js/squel-basic-5.13.0-afa1cb5.wsh.js diff --git a/lib/browser.js b/lib/browser.js index fb04ce04..d009096f 100644 --- a/lib/browser.js +++ b/lib/browser.js @@ -205,8 +205,8 @@ function start(callback) { } addScript("app/assets/js/html5shiv-printshiv-3.7.3.min.js"); if (msie < 9) { - addScript("app/assets/js/respond-1.4.2.edited.js"); - addScript("app/assets/js/selectivizr-1.0.2.edited.js"); + addScript("app/assets/js/respond-1.4.2.wsh.js"); + addScript("app/assets/js/selectivizr-1.0.2.wsh.js"); addScript("app/assets/js/excanvas.arv-565afad.js"); waitUntil(function(test, ttl) { @@ -221,7 +221,7 @@ function start(callback) { return window.jQuery; }); } - addScript("app/assets/js/jquery.html5-placeholder-shim.jcampbell1-5a87f05.js"); + addScript("app/assets/js/jquery.html5-placeholder-shim-5a87f05.js"); // load Modernizr (2.8.3) addScript("app/assets/js/modernizr-2.8.3.min.js"); @@ -254,7 +254,7 @@ exports.start = start; exports.reload = reload; exports.close = close; -exports.VERSIONINFO = "Browser Compatibility Library (browser.js) version 0.1.5"; +exports.VERSIONINFO = "Browser Compatibility Library (browser.js) version 0.1.6"; exports.AUTHOR = "abuse@catswords.net"; exports.global = global; exports.require = global.require;