Skip to content

Loading…

Factoring polynomials by grouping - Isn't my answer correct, too? #43280

Closed
KhanBugz opened this Issue · 1 comment

3 participants

@KhanBugz

I got this as my answer but it's flagged as incorrect. I think its ok: -(x-1)(5x+2)

factoring_polynomials_by_grouping_1.html?seed=177&problem=0

Answer timeline

[]

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22

MathJax is loaded, ready, queue length: 0

User hash: 1199539324

@petercollingridge
Khan Academy member

realbug - looks like some of the solutions in the sets are repeated and that the order should have been reversed.

@petercollingridge petercollingridge referenced this issue
@beneater beneater Make factoring_polynomials_by_grouping_1 accept all valid answers
fix #38994; fix #38162; fix #35332; fix #35331

Test plan: Load http://localhost:8000/exercises/factoring_polynomials_by_grouping_1.html?debug&problem=0&seed=88 and try all of these answers:
    (-7x-1)(x-5)
    (-7x-1)(-5+x)
    (-1-7x)(x-5)
    (-1-7x)(-5+x)
    (x-5)(-7x-1)
    (-5+x)(-7x-1)
    (x-5)(-1-7x)
    (-5+x)(-1-7x)
    (7x+1)(-x+5)
    (7x+1)(5-x)
    (1+7x)(-x+5)
    (1+7x)(5-x)
    (-x+5)(7x+1)
    (5-x)(7x+1)
    (-x+5)(1+7x)
    (5-x)(1+7x)
    -(7x+1)(x-5)
    -(7x+1)(-5+x)
    -(1+7x)(x-5)
    -(1+7x)(-5+x)
    -(-x+5)(-7x-1)
    -(5-x)(-7x-1)
    -(-x+5)(-1-7x)
    -(5-x)(-1-7x)
    -(7x+1)(x-5)
    -(7x+1)(-5+x)
    -(1+7x)(x-5)
    -(1+7x)(-5+x)
    -(-x+5)(-7x-1)
    -(5-x)(-7x-1)
    -(-x+5)(-1-7x)
    -(5-x)(-1-7x)

Auditors: cbhl, alpert
66a5ed8
@beneater beneater closed this
@beneater beneater reopened this
@beneater beneater added a commit that closed this issue
@beneater beneater Correctly (i hope) accept all answer permutations and add a TODO to d…
…o it better

fix #43280; fix #43228; fix #42415

Test plan: Answer -(x-1)(5x+2) for http://localhost:8000/exercises/factoring_polynomials_by_grouping_1.html?seed=177&problem=0&debug

Auditors: cbhl, alpert
064be4d
@beneater beneater closed this in 064be4d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.