How to use the smallerEq function from mathjs
Find comprehensive JavaScript mathjs.smallerEq code examples handpicked from public code repositorys.
GitHub: mljs/optimization
44 45 46 47 48 49 50 51 52 53
var high = Util.getIndexRow(y, math.max(y)); var li = high; var ho = low; for(var i = 0; i <= size; ++i) { if(!math.equal(i, low) && !math.equal(i, high) && math.smallerEq(y[i], y[li])) { li = i; } if(!math.equal(i, low) && !math.equal(i, high) && math.largerEq(y[i], y[ho])) { ho = i;
0
0
0
+ 9 other calls in file
mathjs.evaluate is the most popular function in mathjs (87200 examples)