time-to-botec/squiggle/node_modules/jstat/test/linearalgebra/inv-test.js
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

21 lines
442 B
JavaScript

var vows = require('vows');
var assert = require('assert');
var suite = vows.describe('jStat');
require('../env.js');
suite.addBatch({
'linearalgebra': {
'topic': function() {
return jStat;
},
'sanity: inv of ident is ident': function(jStat) {
var A = [[1, 0, 0], [0, 1, 0], [0, 0, 1]];
var B = [[1, 0, 0], [0, 1, 0], [0, 0, 1]];
assert.deepEqual(jStat.inv(A), B);
}
}
});
suite.export(module);