Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/cooriented
Checks relative orientation of cells
https://github.com/mikolalysenko/cooriented
Last synced: about 2 months ago
JSON representation
Checks relative orientation of cells
- Host: GitHub
- URL: https://github.com/mikolalysenko/cooriented
- Owner: mikolalysenko
- Created: 2013-03-20T00:37:39.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-21T19:10:55.000Z (almost 12 years ago)
- Last Synced: 2024-04-29T11:05:41.282Z (8 months ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
cooriented
==========
Checks relative parity of two sequences. Can be used to evaluate the differential in simplicial homology.Usage
=====
Via npm:npm install cooriented
```javascript
console.log(require("cooriented")([0,1,2], [0,1,2])) // prints +1
console.log(require("cooriented")([0,1,2], [1,0,2])) // prints -1
````require("cooriented")(a, b)`
-----------------------------
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:* a.length !== b.length
* OR the elements in a and b do not match
* OR either a or b contains any repeated elementsThen this returns 0.
Credits
=======
(c) 2013 Mikola Lysenko.