simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

csFlip.js (257B)


      1 /**
      2  * This function "flips" its input about the integer -1.
      3  *
      4  * @param {Number}  i               The value to flip
      5  *
      6  * Reference: http://faculty.cse.tamu.edu/davis/publications.html
      7  */
      8 export function csFlip(i) {
      9   // flip the value
     10   return -i - 2;
     11 }