Skip to content

FacForm: Answer test results

This page exposes the results of running answer tests on STACK test cases. This page is automatically generated from the STACK unit tests and is designed to show question authors what answer tests actually do. This includes cases where answer tests currentl fail, which gives a negative expected mark. Comments and further test cases are very welcome.

FacForm

Test
?
Student response
Teacher answer
Opt
Mark
Answer note
FacForm
1/0
0
x
-1 ATFacForm_STACKERROR_SAns.
FacForm
0
1/0
x
-1 ATFacForm_STACKERROR_TAns.
FacForm
0
0
1/0
-1 ATFacForm_STACKERROR_Opt.
Trivial cases
FacForm
2
2
x
1 ATFacForm_int_true.
FacForm
6
6
x
1 ATFacForm_int_true.
FacForm
1/3
1/3
x
1 ATFacForm_true.
FacForm
3*x^2
3*x^2
x
1 ATFacForm_true.
FacForm
4*x^2
4*x^2
x
1 ATFacForm_true.
Linear integer factors
FacForm
2*(x-1)
2*x-2
x
1 ATFacForm_true.
FacForm
2*x-2
2*x-2
x
0 ATFacForm_notfactored.
Your answer is not factored. You need to take out a common factor.
FacForm
2*(x+1)
2*x-2
x
0 ATFacForm_isfactored. ATFacForm_notalgequiv.
Your answer is factored, well done. Note that your answer is not algebraically equivalent to the correct answer. You must have done something wrong.
FacForm
2*x+2
2*x-2
x
0 ATFacForm_notfactored. ATFacForm_notalgequiv.
Your answer is not factored. You need to take out a common factor. Note that your answer is not algebraically equivalent to the correct answer. You must have done something wrong.
FacForm
2*(x+0.5)
2*x+1
x
1 ATFacForm_default_true.
Linear factors
FacForm
t*(2*x+1)
t*(2*x+1)
x
1 ATFacForm_true.
FacForm
t*x+t
t*(x+1)
x
0 ATFacForm_notfactored.
Your answer is not factored.
FacForm
6*s*t+10*s
2*s*(3*t+5)
t
0 ATFacForm_notfactored.
Your answer is not factored.
Quadratic, with no const
FacForm
2*x*(x-3)
2*x^2-6*x
x
1 ATFacForm_true.
FacForm
2*(x^2-3*x)
2*x*(x-3)
x
0 ATFacForm_notfactored.
Your answer is not factored. You could still do some more work on the term \(x^2-3\cdot x\).
FacForm
x*(2*x-6)
2*x*(x-3)
x
0 ATFacForm_notfactored.
Your answer is not factored. You could still do some more work on the term \(2\cdot x-6\). You need to take out a common factor.
Quadratic
FacForm
(x+2)*(x+3)
(x+2)*(x+3)
x
1 ATFacForm_true.
FacForm
(x+2)*(2*x+6)
2*(x+2)*(x+3)
x
0 ATFacForm_notfactored.
Your answer is not factored. You could still do some more work on the term \(2\cdot x+6\). You need to take out a common factor.
FacForm
(z*x+z)*(2*x+6)
2*z*(x+1)*(x+3)
x
0 ATFacForm_notfactored.
Your answer is not factored. You could still do some more work on the term \(z\cdot x+z\). You could still do some more work on the term \(2\cdot x+6\). You need to take out a common factor.
FacForm
(x+t)*(x-t)
x^2-t^2
x
1 ATFacForm_true.
FacForm
t^2-1
(t-1)*(t+1)
t
0 ATFacForm_notfactored.
Your answer is not factored.
FacForm
t^2+1
t^2+1
t
1 ATFacForm_true.
FacForm
v^2+1
v^2+1
v
1 ATFacForm_true.
FacForm
v^2-1
v^2-1
v
0 ATFacForm_notfactored.
Your answer is not factored.
FacForm
-(3*w-4*v+9*u)*(3*w+4*v-u)
-(3*w-4*v+9*u)*(3*w+4*v-u)
v
1 ATFacForm_true.
FacForm
-6*k*(4*b-k-1)
6*k*(1+k-4*b)
k
1 ATFacForm_default_true.
FacForm
-2*3*k*(4*b-k-1)
6*k*(1+k-4*b)
k
1 ATFacForm_true.
FacForm
-(6*k*(4*b-k-1))
6*k*(1+k-4*b)
k
1 ATFacForm_default_true.
FacForm
-(6*a*(4*b-a-1))
6*a*(1+a-4*b)
a
1 ATFacForm_true.
FacForm
-(6*a*(4*b-a-1))
6*a*(-(4*b)+a+1)
a
1 ATFacForm_true.
FacForm
x*(x-4+4/x)
x^2-4*x+4
x
0 ATFacForm_notfactored.
Your answer is not factored. You could still do some more work on the term \(x-4+\frac{4}{x}\). This term is expected to be a polynomial, but is not.
These are delicate cases!
FacForm
(2-x)*(3-x)
(x-2)*(x-3)
x
1 ATFacForm_true.
FacForm
(1-x)^2
(x-1)^2
x
1 ATFacForm_true.
FacForm
(1-x)*(1-x)
(x-1)^2
x
1 ATFacForm_true.
FacForm
-(1-x)^2
-(x-1)^2
x
1 ATFacForm_true.
FacForm
(1-x)^2
(x-1)^2
x
1 ATFacForm_true.
FacForm
4*(1-x/2)^2
(x-2)^2
x
1 ATFacForm_default_true.
FacForm
-3*(x-4)*(x+1)
-3*x^2+9*x+12
x
1 ATFacForm_true.
FacForm
3*(-x+4)*(x+1)
-3*x^2+9*x+12
x
1 ATFacForm_true.
FacForm
3*(4-x)*(x+1)
-3*x^2+9*x+12
x
1 ATFacForm_true.
Cubics
FacForm
(x-1)*(x^2+x+1)
x^3-1
x
1 ATFacForm_true.
FacForm
x^3-x+1
x^3-x+1
x
1 ATFacForm_true.
FacForm
7*x^3-7*x+7
7*(x^3-x+1)
x
0 ATFacForm_notfactored.
Your answer is not factored. You need to take out a common factor.
FacForm
(1-x)*(2-x)*(3-x)
-x^3+6*x^2-11*x+6
x
1 ATFacForm_true.
FacForm
(2-x)*(2-x)*(3-x)
-x^3+7*x^2-16*x+12
x
1 ATFacForm_true.
FacForm
(2-x)^2*(3-x)
-x^3+7*x^2-16*x+12
x
1 ATFacForm_true.
FacForm
(x^2-4*x+4)*(3-x)
-x^3+7*x^2-16*x+12
x
0 ATFacForm_notfactored.
Your answer is not factored. You could still do some more work on the term \(x^2-4\cdot x+4\).
FacForm
(x^2-3*x+2)*(3-x)
-x^3+6*x^2-11*x+6
x
0 ATFacForm_notfactored.
Your answer is not factored. You could still do some more work on the term \(x^2-3\cdot x+2\).
FacForm
3*y^3-6*y^2-24*y
3*(y-4)*y*(y+2)
y
0 ATFacForm_notfactored.
Your answer is not factored. You need to take out a common factor.
FacForm
3*(y^3-2*y^2-8*y)
3*(y-4)*y*(y+2)
y
0 ATFacForm_notfactored.
Your answer is not factored. You could still do some more work on the term \(y^3-2\cdot y^2-8\cdot y\).
FacForm
3*y*(y^2-2*y-8)
3*(y-4)*y*(y+2)
y
0 ATFacForm_notfactored.
Your answer is not factored. You could still do some more work on the term \(y^2-2\cdot y-8\).
FacForm
3*(y^2-4*y)*(y+2)
3*(y-4)*y*(y+2)
y
0 ATFacForm_notfactored.
Your answer is not factored. You could still do some more work on the term \(y^2-4\cdot y\).
FacForm
(y-4)*y*(3*y+6)
3*(y-4)*y*(y+2)
y
0 ATFacForm_notfactored.
Your answer is not factored. You could still do some more work on the term \(3\cdot y+6\). You need to take out a common factor.
FacForm
(a-x)^6000
(a-x)^6000
x
1 ATFacForm_true.
FacForm
(x-a)^6000
(a-x)^6000
x
1 ATFacForm_true.
Needs flattening
FacForm
2*a*(a*b-1)
2*a*(a*b-1)
a
1 ATFacForm_true.
FacForm
(2*a)*(a*b-1)
2*a*(a*b-1)
a
1 ATFacForm_true.
FacForm
3*x*(7*y-3)*(7*y+3)
3*x*(7*y-3)*(7*y+3)
x
1 ATFacForm_true.
FacForm
3*x*(7*y-3)*(7*y+3)
3*x*(7*y-3)*(7*y+3)
y
1 ATFacForm_true.
Not polynomials in a variable
FacForm
(sin(x)+1)*(sin(x)-1)
sin(x)^2-1
sin(x)
1 ATFacForm_true.
FacForm
(cos(t)-sqrt(2))^2
cos(t)^2-2*sqrt(2)*cos(t)+2
cos(t)
1 ATFacForm_true.
FacForm
7
7
x
1 ATFacForm_int_true.
Factors over other fields
FacForm
24*(x-1/4)
24*x-6
x
1 ATFacForm_default_true.
FacForm
(x-sqrt(2))*(x+sqrt(2))
x^2-2
x
1 ATFacForm_true.
FacForm
x^2-2
x^2-2
x
1 ATFacForm_true.
FacForm
(%i*x-2*%i)
%i*(x-2)
x
0 ATFacForm_notfactored.
Your answer is not factored.
FacForm
%i*(x-2)
(%i*x-2*%i)
x
1 ATFacForm_true.
FacForm
(x-%i)*(x+%i)
x^2+1
x
1 ATFacForm_true.
FacForm
(x-1)*(x+(1+sqrt(3)*%i)/2)*(x+
(1-sqrt(3)*%i)/2)
x^3-1
x
1 ATFacForm_default_true.