Code Monkey home page Code Monkey logo

theoremjs's Issues

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

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)

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

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.