Code Monkey home page Code Monkey logo

theoremjs's Introduction

Logo

TheoremJS

A Math framework for computation in JavaScript

GitHub release cdnjs release Build Status Github All Releases npm License FOSSA Status

TheoremJS is a mathematical framework that is packed up with tons of useful mathematical functions. It is composed of functions in most mathematical fields such as algebra, number theory, statistics, etc... It was designed to fit your need, whatever you are trying to do.

Getting Started

Type the following command in a terminal

[sudo] npm i theorem.js

Then open your favorite code editor:

const t = require("theorem.js");
/* Start coding here */

Documentation

The documentation can be found here

Project using TheoremJS

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Arthur Guiot - Initial work - @arguiot

Also look at the list of contributors who participated in this project. If you don't code but you have great ideas, don't hesitate to write your idea in the issue part. If your idea is accepted, I will add you to this list ๐Ÿ˜Š.

License

This project is licensed under the MIT License - see the file for details

Copyright ยฉ 2017 - 2018 Arthur Guiot All Rights Reserved.

FOSSA Status

theoremjs's People

Contributors

arguiot avatar dependabot-support avatar extend1994 avatar fossabot avatar imgbotapp avatar lucasgruwez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

theoremjs's Issues

Disproportional scaling

Describe the bug
When you open theorem.js.org with a certain window size and resize it, the sphere and the tetrahedron get disproportionately scaled.

Screenshot
Screenshot of the issue

Browser

  • Windows 10
  • Chrome 68.0.3440.106

UMD/AMD package

TheoremJS has a browser-friendly dist but it'd be excellent if that dist was a UMD or an AMD, so that loaders like d3-require could consume it.

Given the rigger-based build system I'm not sure what the right path to this goal would be, because I've never used rigger and it's quite a bit different from something like rollup or browserify, which would make UMD builds rather straightforward.

Finding polynomial roots is limited to only the first 4 values of the polynomial

Describe the bug
When using findRoot, it is impossible to find the root of a polynomial with more than 4 elements, so (ax^3 + bx^2 + cx + d).

To Reproduce
Steps to reproduce the behavior:

  1. Use the function on a polynomial with more than 4 coefficients/numbers (t.polynomial(1, 6, -8, -6))

Expected behavior
The roots should be gotten.

Screenshots / Output
the output is simply undefined or an empty array

NodeJS (please complete the following information):

  • OS: [e.g. macOS 10.14] Linux ( Ubuntu 20.04 )
  • Node version [e.g. v8.11.3] Node 18
  • Version [e.g. v1.0] latest (1.2.0)

Complex numbers

Complex numbers
I think that your library needs to get a complex numbers.

Actions with complex numbers
You can implement these basic actions with complex numbers:

  • Addition
  • Subtraction
  • Multiplication
  • Division
  • Raise to the power
  • Root
  • Some trigonometrical functions

Useful references

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.