# public Khan /khan-exercises

### Subversion checkout URL

You can clone with HTTPS or Subversion.

# Factoring polynomials by grouping - Multiple Answers#38994

Closed
opened this Issue · 1 comment

### 2 participants

Collaborator

I'm supposed to factor -7x^2 + 34x + 5, and it says the answer is (-7x-1)(x-5), which is correct, but I got the answer (7x +1)(5-x), which is also correct. However, it won't accept my answer.

factoring_polynomials_by_grouping_1.html?seed=88&problem=0

[["(5-x)(7x+1)"],["(7x+1)(5-x)"]]


Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.56 Safari/537.17

User hash: 1073136288

start of log
start of makeProblem
chose problem type and seed
cloned problem
cloned global elements
ran tmplApply to vars and main elements
ran tmplApply to [id]
removed hints from DOM
evaled inline scripts
(underscoreLoad not a fn; src undefined)
(hintsLoad not a fn; src undefined)
(calculatorLoad not a fn; src undefined)
(mathLoad not a fn; src undefined)
(raphaelLoad not a fn; src undefined)
(graphieLoad not a fn; src undefined)
(answer-types not a fn; src undefined)
running tmpl
adding (-3, 7) to MathJax typeset queue
adding (-7, 8) to MathJax typeset queue
adding (-3, 4) to MathJax typeset queue
adding (-3, 7) to MathJax typeset queue
adding (3, 7) to MathJax typeset queue
adding (8, 3) to MathJax typeset queue
adding (-7, 8) to MathJax typeset queue
adding (-3, 4) to MathJax typeset queue
adding (-3, 7) to MathJax typeset queue
adding (3, 7) to MathJax typeset queue
adding (8, 3) to MathJax typeset queue
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
running graphie
adding 2 to MathJax typeset queue
adding 4 to MathJax typeset queue
adding 6 to MathJax typeset queue
adding 8 to MathJax typeset queue
adding 10 to MathJax typeset queue
adding \llap{-}4 to MathJax typeset queue
adding \llap{-}6 to MathJax typeset queue
adding \llap{-}8 to MathJax typeset queue
adding \llap{-}10 to MathJax typeset queue
adding 2 to MathJax typeset queue
adding 4 to MathJax typeset queue
adding 6 to MathJax typeset queue
adding 8 to MathJax typeset queue
adding 10 to MathJax typeset queue
adding \llap{-}4 to MathJax typeset queue
adding \llap{-}6 to MathJax typeset queue
adding \llap{-}8 to MathJax typeset queue
adding \llap{-}10 to MathJax typeset queue
ran graphie
done with runModules
(answer-types not a fn; src undefined)
running tmpl
adding (-7, 8) to MathJax typeset queue
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
running graphie
ran graphie
(answer-types not a fn; src undefined)
running tmpl
adding (-3, 4) to MathJax typeset queue
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
running graphie
ran graphie
(answer-types not a fn; src undefined)
running tmpl
adding (-3, 7) to MathJax typeset queue
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
running graphie
ran graphie
(answer-types not a fn; src undefined)
running tmpl
adding (3, 7) to MathJax typeset queue
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
running graphie
ran graphie
(answer-types not a fn; src undefined)
running tmpl
adding (8, 3) to MathJax typeset queue
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
running graphie
ran graphie
validator created
MathJax done typesetting (-3, 7)
MathJax done typesetting (-7, 8)
MathJax done typesetting (-3, 4)
MathJax done typesetting (-3, 7)
MathJax done typesetting (3, 7)
MathJax done typesetting (8, 3)
MathJax done typesetting (-7, 8)
MathJax done typesetting (-3, 4)
MathJax done typesetting (-3, 7)
MathJax done typesetting (3, 7)
MathJax done typesetting (8, 3)
MathJax done typesetting 2
MathJax done typesetting 4
MathJax done typesetting 6
MathJax done typesetting 8
MathJax done typesetting 10
MathJax done typesetting \llap{-}4
MathJax done typesetting \llap{-}6
MathJax done typesetting \llap{-}8
MathJax done typesetting \llap{-}10
MathJax done typesetting 2
MathJax done typesetting 4
MathJax done typesetting 6
MathJax done typesetting 8
MathJax done typesetting 10
MathJax done typesetting \llap{-}4
MathJax done typesetting \llap{-}6
MathJax done typesetting \llap{-}8
MathJax done typesetting \llap{-}10
MathJax done typesetting (-7, 8)
MathJax done typesetting (-3, 4)
MathJax done typesetting (-3, 7)
MathJax done typesetting (3, 7)
MathJax done typesetting (8, 3)
attempt {"complete":1,"count_hints":0,"time_taken":79,"attempt_number":1,"attempt_content":"\"(-3, 7)\"","sha1":"1f3cf6cb09a574c88c8c10ad728841237c2ad5a8","seed":199,"problem_type":"0","review_mode":0,"topic_mode":1,"casing":"camel","card":"{\"leavesAvailable\":2,\"growthHeader\":\"\",\"exerciseName\":\"identifying_points_1\",\"leavesEarned\":2,\"cardType\":\"problem\",\"done\":true}","stack_uid":"d3c06942-8941-4da4-8a64-0adbde582cc0","topic_id":"trigonometry","cards_done":6,"cards_left":1}
(answer-typesCleanup not a fn; src undefined)
running tmplCleanup
got jax of type object
source element is type object
source element (-7, 8)\qquad(-3, 4)\qquad(-3, 7)\qquad(3, 7)\qquad(8, 3)
removed!
cleaning up: 2
got jax of type object
source element is type object
source element 2
removed!
cleaning up: 4
got jax of type object
source element is type object
source element 4
removed!
cleaning up: 6
got jax of type object
source element is type object
source element 6
removed!
cleaning up: 8
got jax of type object
source element is type object
source element 8
removed!
cleaning up: 10
got jax of type object
source element is type object
source element 10
removed!
cleaning up: \llap{-}4
got jax of type object
source element is type object
source element \llap{-}4
removed!
cleaning up: \llap{-}6
got jax of type object
source element is type object
source element \llap{-}6
removed!
cleaning up: \llap{-}8
got jax of type object
source element is type object
source element \llap{-}8
removed!
cleaning up: \llap{-}10
got jax of type object
source element is type object
source element \llap{-}10
removed!
cleaning up: 2
got jax of type object
source element is type object
source element 2
removed!
cleaning up: 4
got jax of type object
source element is type object
source element 4
removed!
cleaning up: 6
got jax of type object
source element is type object
source element 6
removed!
cleaning up: 8
got jax of type object
source element is type object
source element 8
removed!
cleaning up: 10
got jax of type object
source element is type object
source element 10
removed!
cleaning up: \llap{-}4
got jax of type object
source element is type object
source element \llap{-}4
removed!
cleaning up: \llap{-}6
got jax of type object
source element is type object
source element \llap{-}6
removed!
cleaning up: \llap{-}8
got jax of type object
source element is type object
source element \llap{-}8
removed!
cleaning up: \llap{-}10
got jax of type object
source element is type object
source element \llap{-}10
removed!
ran tmplCleanup
(underscoreCleanup not a fn; src undefined)
(jquery.adhesionCleanup not a fn; src undefined)
(hintsCleanup not a fn; src undefined)
(calculatorCleanup not a fn; src undefined)
(mathCleanup not a fn; src undefined)
(raphaelCleanup not a fn; src undefined)
(graphieCleanup not a fn; src undefined)
(answer-typesCleanup not a fn; src undefined)
running tmplCleanup
ran tmplCleanup
(underscoreCleanup not a fn; src undefined)
(jquery.adhesionCleanup not a fn; src undefined)
(hintsCleanup not a fn; src undefined)
(calculatorCleanup not a fn; src undefined)
(mathCleanup not a fn; src undefined)
(raphaelCleanup not a fn; src undefined)
(graphieCleanup not a fn; src undefined)
start of makeProblem
chose problem type and seed
cloned problem
cloned global elements
ran tmplApply to vars and main elements
ran tmplApply to [id]
removed hints from DOM
evaled inline scripts
(underscoreLoad not a fn; src undefined)
(hintsLoad not a fn; src undefined)
(calculatorLoad not a fn; src undefined)
(mathLoad not a fn; src undefined)
(raphaelLoad not a fn; src undefined)
(math-formatLoad not a fn; src undefined)
(expressionsLoad not a fn; src undefined)
(graphieLoad not a fn; src undefined)
(answer-types not a fn; src undefined)
running tmpl
adding -7 to MathJax typeset queue
MathJax done typesetting -7
reprocessing MathJax: undefined
MathJax done reprocessing undefined
adding x^2+ to MathJax typeset queue
adding 34 to MathJax typeset queue
adding x+ to MathJax typeset queue
adding 5 to MathJax typeset queue
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
(math-format not a fn; src undefined)
(expressions not a fn; src undefined)
running graphie
ran graphie
done with runModules
validator created
adding \blue{A}x^2 + \green{B}x + \pink{C} to MathJax typeset queue
adding a to MathJax typeset queue
adding b to MathJax typeset queue
\purple{ab} &=& \blue{A}\pink{C} \
\purple{a} + \purple{b} &=& \green{B}
\end{eqnarray}
to MathJax typeset queue
\purple{ab} &=&
\blue{(-7)}\pink{(5)} &=& -35 \
\purple{a} + \purple{b} &=& &=&
\green{34}
\end{eqnarray}
to MathJax typeset queue
adding \purple{a} to MathJax typeset queue
adding \purple{b} to MathJax typeset queue
adding -35 to MathJax typeset queue
adding -35 to MathJax typeset queue
adding \green{34} to MathJax typeset queue
adding \purple{a} to MathJax typeset queue
adding \purple{b} to MathJax typeset queue
adding \purple{a} to MathJax typeset queue
adding \purple{-1} to MathJax typeset queue
adding \purple{b} to MathJax typeset queue
adding \purple{35} to MathJax typeset queue
\purple{ab} &=& (\purple{-1})(\purple{35})
&=& -35 \
\purple{a} + \purple{b} &=& \purple{-1} + \purple{35}
&=& 34
\end{eqnarray}
to MathJax typeset queue
adding \blue{A}x^2 + \purple{a}x + \purple{b}x + \pink{C} to MathJax typeset queue
\purple{-1}x
+\purple{35}x
+\pink{5}
to MathJax typeset queue
+ (\purple{35}x +\pink{5})
to MathJax typeset queue
\qquad x(-7x + -1) + -5(-7x + -1)
to MathJax typeset queue
adding (-7x + -1) to MathJax typeset queue
adding (-7x + -1)(x + -5) to MathJax typeset queue
MathJax done typesetting x^2+
MathJax done typesetting 34
MathJax done typesetting x+
MathJax done typesetting 5
MathJax done typesetting \blue{A}x^2 + \green{B}x + \pink{C}
MathJax done typesetting a
MathJax done typesetting b
MathJax done typesetting
\purple{ab} &=& \blue{A}\pink{C} \
\purple{a} + \purple{b} &=& \green{B}
\end{eqnarray}

MathJax done typesetting
\purple{ab} &=&
\blue{(-7)}\pink{(5)} &=& -35 \
\purple{a} + \purple{b} &=& &=&
\green{34}
\end{eqnarray}

MathJax done typesetting \purple{a}
MathJax done typesetting \purple{b}
MathJax done typesetting -35
MathJax done typesetting -35
MathJax done typesetting \green{34}
MathJax done typesetting \purple{a}
MathJax done typesetting \purple{b}
MathJax done typesetting \purple{a}
MathJax done typesetting \purple{-1}
MathJax done typesetting \purple{b}
MathJax done typesetting \purple{35}
MathJax done typesetting
\purple{ab} &=& (\purple{-1})(\purple{35})
&=& -35 \
\purple{a} + \purple{b} &=& \purple{-1} + \purple{35}
&=& 34
\end{eqnarray}

MathJax done typesetting \blue{A}x^2 + \purple{a}x + \purple{b}x + \pink{C}
MathJax done typesetting
\purple{-1}x
+\purple{35}x
+\pink{5}

MathJax done typesetting
+ (\purple{35}x +\pink{5})

MathJax done typesetting
\qquad x(-7x + -1) + -5(-7x + -1)

MathJax done typesetting (-7x + -1)
MathJax done typesetting (-7x + -1)(x + -5)
(answer-types not a fn; src undefined)
running tmpl
reprocessing MathJax: undefined
MathJax done reprocessing undefined
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
(math-format not a fn; src undefined)
(expressions not a fn; src undefined)
running graphie
ran graphie
(answer-types not a fn; src undefined)
running tmpl
reprocessing MathJax: undefined
MathJax done reprocessing undefined
reprocessing MathJax: undefined
MathJax done reprocessing undefined
reprocessing MathJax: undefined
MathJax done reprocessing undefined
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
(math-format not a fn; src undefined)
(expressions not a fn; src undefined)
running graphie
ran graphie
(answer-types not a fn; src undefined)
running tmpl
reprocessing MathJax: undefined
MathJax done reprocessing undefined
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
(math-format not a fn; src undefined)
(expressions not a fn; src undefined)
running graphie
ran graphie
(answer-types not a fn; src undefined)
running tmpl
reprocessing MathJax: undefined
MathJax done reprocessing undefined
reprocessing MathJax: undefined
MathJax done reprocessing undefined
reprocessing MathJax: undefined
MathJax done reprocessing undefined
reprocessing MathJax: undefined
MathJax done reprocessing undefined
reprocessing MathJax: undefined
MathJax done reprocessing undefined
reprocessing MathJax: undefined
MathJax done reprocessing undefined
reprocessing MathJax: undefined
MathJax done reprocessing undefined
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
(math-format not a fn; src undefined)
(expressions not a fn; src undefined)
running graphie
ran graphie
(answer-types not a fn; src undefined)
running tmpl
reprocessing MathJax: undefined
MathJax done reprocessing undefined
reprocessing MathJax: undefined
MathJax done reprocessing undefined
reprocessing MathJax: undefined
MathJax done reprocessing undefined
reprocessing MathJax: undefined
MathJax done reprocessing undefined
reprocessing MathJax: undefined
MathJax done reprocessing undefined
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
(math-format not a fn; src undefined)
(expressions not a fn; src undefined)
running graphie
ran graphie
(answer-types not a fn; src undefined)
running tmpl
reprocessing MathJax: undefined
MathJax done reprocessing undefined
reprocessing MathJax: undefined
MathJax done reprocessing undefined
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
(math-format not a fn; src undefined)
(expressions not a fn; src undefined)
running graphie
ran graphie
(answer-types not a fn; src undefined)
running tmpl
reprocessing MathJax: undefined
MathJax done reprocessing undefined
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
(math-format not a fn; src undefined)
(expressions not a fn; src undefined)
running graphie
ran graphie
(answer-types not a fn; src undefined)
running tmpl
reprocessing MathJax: undefined
MathJax done reprocessing undefined
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
(math-format not a fn; src undefined)
(expressions not a fn; src undefined)
running graphie
ran graphie
(answer-types not a fn; src undefined)
running tmpl
reprocessing MathJax: undefined
MathJax done reprocessing undefined
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
(math-format not a fn; src undefined)
(expressions not a fn; src undefined)
running graphie
ran graphie
(answer-types not a fn; src undefined)
running tmpl
reprocessing MathJax: undefined
MathJax done reprocessing undefined
ran tmpl
(underscore not a fn; src undefined)
(jquery.adhesion not a fn; src undefined)
(hints not a fn; src undefined)
(calculator not a fn; src undefined)
(math not a fn; src undefined)
(raphael not a fn; src undefined)
(math-format not a fn; src undefined)
(expressions not a fn; src undefined)
running graphie
ran graphie

The content you are editing has changed. Reload the page and try again.

realbug

Sending Request…

Attach images by dragging & dropping or selecting them. Uploading your images… Unfortunately, we don't support that file type. Try again with a PNG, GIF, or JPG. Yowza, that's a big file. Try again with an image file smaller than 10MB. This browser doesn't support image attachments. We recommend updating to the latest Internet Explorer, Google Chrome, or Firefox. Something went really wrong, and we can't process that image.

closed this issue from a commit
 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
closed this in 66a5ed8