Checks relative parity of two sequences. Can be used to evaluate the differential in simplicial homology.
npm install cooriented
console // prints +1console // prints -1
Computes the relative orientation of a vs b. This is done by evaluating the Vandermonde polynomials of degree n for a and b, then taking their quotient mod 3. If:
Then this returns 0.
(c) 2013 Mikola Lysenko.