mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
12 lines
258 B
JavaScript
12 lines
258 B
JavaScript
/**
|
|
* 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
|
|
*/
|
|
export function csFlip (i) {
|
|
// flip the value
|
|
return -i - 2
|
|
}
|