davidedc/Algebrite

How to solve equations?

Bellisario opened this issue · 2 comments

I'm trying to use this library to solve equations via JS, but I find really difficult because there is no explicit API use to do this, an example or something else...

You can do this using the roots function. There's an example on the homepage:

roots(x^4 + x^3 + x^2 + x + 1) # third and fourth degree are solved too
roots(m*x^9 + n) # roots of special polynomials
roots((x^4+x^3)*(x^4*x^2)) # roots of factorable polynomials

Thanks! I'll close this issue,,,