-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Factoring support for quadratics #50
Comments
Perhaps you might like to also consider "completing the square" as a method for solving quadratics?
... etc. I've only just come across your system (and I'm impressed: email to follow). Does your system provide more than one solution, or does it always just give "the way" to solve an equation? |
as far as I remember, completing the square tends to be used for graphing, and isn't as useful for factoring (which is what this particular issue is working on, and would be used for I could totally see another function alongside Right now we always give one solution, but in the future it might be possible to configure certain settings to get certain kinds of solutions. |
unassigned, since the initial pull request went through we still need to add quadratic equation, and also expose factoring to users of the mathsteps module |
Thanks for updating this! I will probably pick up exposing factoring in the API. Should it just be around factor() or should it be factorQuadratic? Also, factoring is often one step (currently it always is but it will have more steps once we support the quadratic equation). Finally, should we support factoring for equations as well? In the case that it's x^2 + 3x + 2 = 0, we actually have two results (similar to absolutes), x = -1 and x = -2. So maybe we wait until we have multiple case support before we tackle that? |
I am inclined to disagree with that. Take Mathematica as an example, they have two functions: "Expand" and "Factor". "Expand" behaves like With that in mind, factorisation could very well be used in the simplification process. For example, one might argue that |
I think your message got cut off that's a good point! it's hard to know what form a student is looking for, but adding factoring at the end is definitely something we can consider doing, or adding as an option parameter or something |
There's a new pull request for exposing factoring |
We don't have any factoring polynomial support yet, but that's our next big goal!
We want to make another top level module like
simplifyExpression
andsolveEquation
that factors an expression (note that factoring is sort of the opposite of simplifying, because simplifying distributes and we would want to "un-distribute")We should be able to factor quadratics in the following ways:
x^2+5x+6
5
and multiply to6
? Answer:2
and3
(x+2)(x+3)
x^2+2x+1
(a+b)^2 = a^2 + 2ab + b^2
to factor into(x+1)^2
x = [-b +or- sqrt(b^2 - 4ac) ] / 2a
The text was updated successfully, but these errors were encountered: