I also created an algebra npm package, it implements what I learned at Algebra first year course at Università Degli Studi di Genova: http://g14n.info/algebra/
Show HN: Algebra.js – Build, display, and solve algebraic equations
21–30 of 31 posts
Re: Show HN: Algebra.js – Build, display, and solve algebraic equations
#22the API is really clear and aesthetic. the whole work seems self contained. it is just awesome. im excited to think about an addition for matrices and combinatorics and calculus as well. this deserves to become like a Magma for js. unlike quite a lot of Shown HN this already seems complete, even the documentation, so aside from hoping it expands I feel there isnt much missing to point out. maybe a calculator graphica…
At one point I did have an interactive example on the project page where you could manipulate an expression with a calculator-looking number pad, but after I ran it by a few friends they seemed mostly confused by its functionality so I removed it. I definitely want to expand the library's functionality; this project has been my go-to for when I'm burnt out on other projects so I don't plan on putting it down anytime…
( Whiteboard ?
A place to do math, obviously, and you did say you go to it when bored of other projects. )
Re: Show HN: Algebra.js – Build, display, and solve algebraic equations
#23Re: Show HN: Algebra.js – Build, display, and solve algebraic equations
#24I also created an algebra npm package, it implements what I learned at Algebra first year course at Università Degli Studi di Genova: http://g14n.info/algebra/
Yeah, I remember seeing that when I found the name algebra was already taken on npm. :)
Re: Show HN: Algebra.js – Build, display, and solve algebraic equations
#25Great project. Please add support for quintic equations.
But nice work, it looks really professional for an out of hand learning project!
Re: Show HN: Algebra.js – Build, display, and solve algebraic equations
#26Hello HN, I was learning JavaScript by completing challenges on CoderByte[0], where one of the hard challenges was to find the point where two lines intersect. The lines were defined by two sets of points, and you had to return your answers as rationals, not floats. The challenge isn't timed, so I got a little carried away: ended up making a Fraction class, Equation class, etc. This first iteration could only solve l…
Re: Show HN: Algebra.js – Build, display, and solve algebraic equations
#27 new CompoundExpression( "x^2 - xy + 5" )
or even new PolishSquarefree("+")("+")("^")("x")(2)("-xy")(5)
or even new Polish("+")("-")("^")("x")(2)(".")("x")("y")(5)Re: Show HN: Algebra.js – Build, display, and solve algebraic equations
#28I clicked the "Download .min.js" tab on the Algebra.js.org page but was given this error message :
Re: Show HN: Algebra.js – Build, display, and solve algebraic equations
#29Hello HN, I was learning JavaScript by completing challenges on CoderByte[0], where one of the hard challenges was to find the point where two lines intersect. The lines were defined by two sets of points, and you had to return your answers as rationals, not floats. The challenge isn't timed, so I got a little carried away: ended up making a Fraction class, Equation class, etc. This first iteration could only solve l…
Cardanos equation is complete, but only under the assumption that complex numbers exist, however, the same is true for the formula of closed-form solutions of quadratic equations. The difference is that Cardanos equation might make use of complex numbers but in the end, returns a real solution whereas the quadratic solver remains complex whenever D So in order to implement qubic equations you'd need (a) support for c…
> At this point, Cardano, who did not know complex numbers, supposed that the roots of this equation were real, that is that q^2/4 + p^3/27 > 0.
I actually had initial plans to do it Cardano's way: I added a Complex class for the very situation you described[0], but ended up abandoning it as the trig solution seemed more straightforward.
[0] https://github.com/nicolewhite/algebra.js/commit/47b6cbba375...
Re: Show HN: Algebra.js – Build, display, and solve algebraic equations
#30Great project. Please add support for quintic equations.
Quintic equations cannot be solved algebraically in the general case. It would require more understanding of algebra by the program whereas I suspect this merely detects the order of the equation and then applies the proper solving formula (Abc for 2nd, Cardano for 3rd). But nice work, it looks really professional for an out of hand learning project!
That's exactly right. You could build a quintic equation, but attempting to solve will return undefined.