All Projects → devanp92 → Combinatorics.js

devanp92 / Combinatorics.js

Licence: mit
Combinatorics Javascript Library

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Combinatorics.js

Kalk
A calculator/expression evaluator written in rust that supports variables and functions.
Stars: ✭ 134 (-14.65%)
Mutual labels:  math
Ecsharp
Home of LoycCore, the LES language of Loyc trees, the Enhanced C# parser, the LeMP macro preprocessor, and the LLLPG parser generator.
Stars: ✭ 141 (-10.19%)
Mutual labels:  math
Alga
Abstract algebra for Rust.
Stars: ✭ 154 (-1.91%)
Mutual labels:  math
Abstract Algebra Cheatsheet
📗 A visualization of key structures in abstract algebra.
Stars: ✭ 137 (-12.74%)
Mutual labels:  math
Thermite
Thermite SIMD: Melt your CPU
Stars: ✭ 141 (-10.19%)
Mutual labels:  math
Specialfunctions.jl
Special mathematical functions in Julia
Stars: ✭ 144 (-8.28%)
Mutual labels:  math
Mathematical
Convert mathematical equations to SVGs, PNGs, or MathML. A general wrapper to Lasem and mtex2MML.
Stars: ✭ 129 (-17.83%)
Mutual labels:  math
Math Php
Powerful modern math library for PHP: Features descriptive statistics and regressions; Continuous and discrete probability distributions; Linear algebra with matrices and vectors, Numerical analysis; special mathematical functions; Algebra
Stars: ✭ 2,009 (+1179.62%)
Mutual labels:  math
In simple english
Small projects to clarify big concepts
Stars: ✭ 140 (-10.83%)
Mutual labels:  math
Jlatexmath Android
aJLaTeXMath Library - Displays LaTeX commands in android OS.
Stars: ✭ 147 (-6.37%)
Mutual labels:  math
Bezierpath Polygons
Adds a convenience initalizer to UIBezierPath for generating n-sided regular polygon paths – with rounded corners support – in Swift!
Stars: ✭ 138 (-12.1%)
Mutual labels:  math
Texme
Self-rendering Markdown + LaTeX documents
Stars: ✭ 1,970 (+1154.78%)
Mutual labels:  math
Zalo.github.io
A home for knowledge that is hard to find elsewhere
Stars: ✭ 143 (-8.92%)
Mutual labels:  math
Mathjs
An extensive math library for JavaScript and Node.js
Stars: ✭ 11,861 (+7454.78%)
Mutual labels:  math
Awesome Computer Graphics
🔺😎 A curated list of awesome stuff to learn computer graphics
Stars: ✭ 154 (-1.91%)
Mutual labels:  math
Libchaos
Advanced library for randomization, hashing and statistical analysis (devoted to chaos machines). 🔬
Stars: ✭ 1,619 (+931.21%)
Mutual labels:  math
Nlopt.jl
Package to call the NLopt nonlinear-optimization library from the Julia language
Stars: ✭ 141 (-10.19%)
Mutual labels:  math
Mathquill
Easily type math in your webapp
Stars: ✭ 1,968 (+1153.5%)
Mutual labels:  math
Hlslpp
Math library using hlsl syntax with SSE/NEON support
Stars: ✭ 153 (-2.55%)
Mutual labels:  math
Guppy
WYSIWYG mathematics editor with structured, searchable, LaTeX-compatible, and parseable output
Stars: ✭ 147 (-6.37%)
Mutual labels:  math

Combinatorics.js

Introduction

Combinatorics.js is a standalone math library for Javascript and Node.js. It features a solution to work with Permutations, Posets, Trees, and other enumerative collections.

Combinatorics.js is also a module to math.js.

Please see this blog article to get a general feel for this project.

Table of Contents

  1. Install/Build
  2. Roadmap
  3. Contributing
  4. License

Install/Build

To clone this project:

git clone [email protected]:devanp92/combinatorics.js.git
cd combinatorics.js

To install via npm:

npm install combinatoricsjs

To install the necessary dependencies:

npm install

To test we use Mocha:

npm test // mocha test --recursive

To build we use Gulp:

gulp

Roadmap

A rough roadmap for Combinatorics.js

  1. Permutation: π : {1...n} -> {1...n}:

    • Behaviors
      • Inverse
      • Multiply
      • Calculate number of cycles
      • Complement
      • Reverse
      • Randomize Permutation
    • States
      • Number of cycles
      • Parity (odd/even)
      • Number of fixed points (is it a Derangement?)
      • Is Identity
    • Ancillary
      • Create/Return iterator
      • Print to cycle notation
  2. Permutation Patterns (subclass of Permutation)

    A permutation π is said to 'contain' a permutation σ (σ is a permuation {1..m}, such that m < n) if there exists a subsequence in π in the same relative order.

    Alternatively, a permutation avoids σ if there does not exist such a subsequence.

    • Behaviors
      • Contains
      • Avoids
      • Permutation avoiding pattern generator (all permutations π from [1..n] avoiding σ)
    • States
      • List of permutations given containing or avoiding a pattern
      • Cardinality
  3. Util Functions

    • Is Integer
    • Combinations
    • Enumerative Methods
      • Bell Numbers
      • Stirling numbers of the first kind
      • Partitions
        • (Weak) Compositions
        • Set Partitions
          • Stirling numbers of the second kind
        • Integer Paritions

Contributing

Feel free to contribute to combinatorics.js! You can contribute in different ways: spread the word, report bugs, come up with ideas and suggestions, and contribute to the code.

There are a few preferences regarding code contributions:

Combinatorics.js follows the node.js code style

Send pull requests to the develop branch, not the master branch.

Pleae do not commit any files other than in lib/ and test/.

If adding functionality, please include source (lib/) and test (test/) files.

Thanks!

Adapted from math.js

License

The MIT License (MIT)

Copyright (c) 2016 Devan Patel

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].