UNPKG

mathjs

Version:

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif

21 lines (18 loc) 428 B
'use strict'; function factory() { /** * This function "flips" its input about the integer -1. * * @param {Number} i The value to flip * * Reference: http://faculty.cse.tamu.edu/davis/publications.html */ var csFlip = function csFlip(i) { // flip the value return -i - 2; }; return csFlip; } exports.name = 'csFlip'; exports.path = 'algebra.sparse'; exports.factory = factory;