GithubHelp home page GithubHelp logo

shortenda / fermat.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mathigon/fermat.js

0.0 0.0 0.0 573 KB

Mathematics, statistics and geometry library for JavaScript.

Home Page: http://mathigon.io/fermat

License: MIT License

TypeScript 99.59% JavaScript 0.41%

fermat.js's Introduction

Fermat.ts

Fermat.ts is a powerful mathematics, statistics and geometry library for TypeScript. It contains everything from number theory to random numbers, expression parsing and linear algebra classes. It was developed for Mathigon.org, an award-winning mathematics education project.

npm npm

Features

  • Arithmetic: nearlyEquals(), toWord(), toFraction(), …
  • Combinatorics: factorial(), binomial(), permutations(), subsets()
  • Complex numbers: Complex()
  • Cryptography: caesarCipher(), vigenereCipher(), letterFrequency()
  • Geometry: Point(), Line(), Polygon(), Circle(), Angle(), as well as methods for geometric properties, projections, intersections and much more
  • Matrices: Matrix.product(), Matrix.determinant(), Matrix.inverse(), …
  • Number theory: gcd(), isPrime(), generatePrime(), goldbach(), …
  • Numeric: bisect(), integrate()
  • Random: Random.shuffle(), Random.binomial(), Random.normalPDF(), …
  • Regression: Regression.linear(), Regression.coefficient(), …
  • Statistics: mean(), variance(), linearRegression(), …
  • Vector: Vector()

Usage

First, install Fermat.ts from NPM using

npm install @mathigon/fermat

We recommend using Fermat.ts together with Rollup, using using the rollup-plugin-node-resolve plugin.

Now, simply import all functions and classes you need, using

import {Complex, gcd} from '@mathigon/fermat'

Contributing

We welcome community contributions: please file any bugs you find or send us pull requests with improvements. You can find out more on Mathigon.io.

Before submitting a pull request, you will need to sign the Mathigon Individual Contributor License Agreement.

Copyright and License

Copyright © Mathigon ([email protected])
Released under the MIT license

fermat.js's People

Contributors

iapain avatar plegner avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.