# Khan/khan-exercises

### Subversion checkout URL

You can clone with
or
.
Fetching contributors…

Cannot retrieve contributors at this time

62 lines (55 sloc) 2.88 KB
 Factoring polynomials 1
randRangeNonZero( -10, 10 ) randRangeNonZero( -10, 10 )
1 SQUARE*A*B A*B SQUARE*(-A-B) -A-B

Factor the following expression:

plus(SQUARE + "x^2") + plus( LINEAR + "x" ) + CONSTANT

^\s*$$\s*[xX]\s*A < 0 ? "\\+" : "[-\u2212]"\s*abs( A )\s*$$\s*$$\s*[xX]\s*B < 0 ? "\\+" : "[-\u2212]"\s*abs( B )\s*$$\s*$^\s*$$\s*[xX]\s*B < 0 ? "\\+" : "[-\u2212]"\s*abs( B )\s*$$\s*$$\s*[xX]\s*A < 0 ? "\\+" : "[-\u2212]"\s*abs( A )\s*$$\s*$
a factored expression, like (x+1)(x+2)

x^2 SIMPLELINEAR >= 0 ? "+" : "" plus( "\\color{" + GREEN + "}{" + SIMPLELINEAR + "}x" ) SIMPLECONSTANT >= 0 ? "+" : "" plus( "\\color{" + BLUE + "}{" + SIMPLECONSTANT + "}" )

\color{PINK}{-A} + \color{PINK}{-B} = \color{GREEN}{SIMPLELINEAR}

\color{PINK}{-A} \times \color{PINK}{-B} = \color{BLUE}{SIMPLECONSTANT}

(x A < 0 ? "+" : "" \color{PINK}{-A}) (x B < 0 ? "+" : "" \color{PINK}{-B})

Something went wrong with that request. Please try again.