simple-squiggle/node_modules/mathjs/lib/cjs/function/algebra/sparse/csFlip.js

18 lines
356 B
JavaScript
Raw Normal View History

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.csFlip = csFlip;
/**
* 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
*/
function csFlip(i) {
// flip the value
return -i - 2;
}