time-to-botec/squiggle/node_modules/jstat/test/linearalgebra/log-test.js

20 lines
416 B
JavaScript
Raw Normal View History

var vows = require('vows');
var assert = require('assert');
var suite = vows.describe('jStat');
require('../env.js');
suite.addBatch({
'linearalgebra': {
'topic': function() {
return jStat;
},
'log function works': function(jStat) {
var A = jStat([[1, Math.E], [Math.exp(5), Math.exp(10)]]);
assert.deepEqual(A.log(), jStat([[0, 1], [5, 10]]));
}
}
});
suite.export(module);