# SubstEquiv: 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.

## SubstEquiv

Test | ? | Student response | Teacher answer | Opt | Mark | Answer note | |
---|---|---|---|---|---|---|---|

SubstEquiv | 1/0 |
x^2-2*x+1 |
-1 | ATSubstEquiv_STACKERROR_SAns. | |||

TEST_FAILED | |||||||

The answer test failed to execute correctly: please alert your teacher. Division by zero. | |||||||

SubstEquiv | x^2 |
x^2-2*x+1 |
[1/0] |
-1 | ATSubstEquiv_STACKERROR_Opt. | ||

TEST_FAILED | |||||||

The answer test failed to execute correctly: please alert your teacher. Division by zero. | |||||||

SubstEquiv | x^2 |
x^2-2*x+1 |
x |
-1 | ATSubstEquiv_Opt_List. | ||

The option to this answer test must be a list. This is an error. Please contact your teacher. | |||||||

SubstEquiv | x^2+1 |
x^2+1 |
1 | ||||

SubstEquiv | x^2+1 |
x^3+1 |
0 | ||||

SubstEquiv | x^2+1 |
x^3+1 |
0 | ||||

SubstEquiv | X^2+1 |
x^2+1 |
1 | ATSubstEquiv_Subst [X = x]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ X=x \right] \] | |||||||

SubstEquiv | x^2+y |
a^2+b |
1 | ATSubstEquiv_Subst [x = a,y = b]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ x=a , y=b \right] \] | |||||||

SubstEquiv | x^2+y/z |
a^2+c/b |
1 | ATSubstEquiv_Subst [x = a,y = c,z = b]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ x=a , y=c , z=b \right] \] | |||||||

SubstEquiv | y=x^2 |
a^2=b |
1 | ATSubstEquiv_Subst [x = a,y = b]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ x=a , y=b \right] \] | |||||||

SubstEquiv | {x=1,y=2} |
{x=2,y=1} |
1 | ATSubstEquiv_Subst [x = y,y = x]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ x=y , y=x \right] \] | |||||||

Where a variable is also a function name. | |||||||

SubstEquiv | cos(a*x)/(x*(ln(x))) |
cos(a*y)/(y*(ln(y))) |
1 | ATSubstEquiv_Subst [a = a,x = y]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ a=a , x=y \right] \] | |||||||

SubstEquiv | cos(a*x)/(x*(ln(x))) |
cos(x*a)/(a*(ln(a))) |
1 | ATSubstEquiv_Subst [a = x,x = a]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ a=x , x=a \right] \] | |||||||

SubstEquiv | cos(a*x)/(x*(ln(x))) |
cos(a*x)/(x(ln(x))) |
0 | ||||

SubstEquiv | cos(a*x)/(x*(ln(x))) |
cos(a*y)/(y(ln(y))) |
0 | ||||

SubstEquiv | x+1>y |
y+1>x |
1 | ATSubstEquiv_Subst [x = y,y = x]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ x=y , y=x \right] \] | |||||||

SubstEquiv | x+1>y |
x<y+1 |
1 | ATSubstEquiv_Subst [x = y,y = x]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ x=y , y=x \right] \] | |||||||

Matrices | |||||||

SubstEquiv | matrix([1,A^2+A+1],[2,0]) |
matrix([1,x^2+x+1],[2,0]) |
1 | ATSubstEquiv_Subst [A = x]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ A=x \right] \] | |||||||

SubstEquiv | matrix([B,A^2+A+1],[2,C]) |
matrix([y,x^2+x+1],[2,z]) |
1 | ATSubstEquiv_Subst [A = x,B = y,C = z]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ A=x , B=y , C=z \right] \] | |||||||

SubstEquiv | matrix([B,A^2+A+1],[2,C]) |
matrix([y,x^2+x+1],[2,x]) |
0 | ATMatrix_wrongentries. | |||

The entries underlined in red below are those that are incorrect. \[ \left[\begin{array}{cc} {\color{red}{\underline{B}}} & {\color{red}{\underline{A^2+A+1}}} \\ 2 & {\color{red}{\underline{C}}} \end{array}\right]\] | |||||||

Lists | |||||||

SubstEquiv | [x^2+1,x^2] |
[A^2+1,A^2] |
1 | ATSubstEquiv_Subst [x = A]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ x=A \right] \] | |||||||

SubstEquiv | [x^2-1,x^2] |
[A^2+1,A^2] |
0 | (ATList_wrongentries 1, 2). | |||

The entries underlined in red below are those that are incorrect. \[\left[ {\color{red}{\underline{x^2-1}}} , {\color{red}{\underline{x ^2}}} \right] \] | |||||||

SubstEquiv | [A,B,C] |
[B,C,A] |
1 | ATSubstEquiv_Subst [A = B,B = C,C = A]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ A=B , B=C , C=A \right] \] | |||||||

SubstEquiv | [A,B,C] |
[B,B,A] |
0 | (ATList_wrongentries 1, 3). | |||

The entries underlined in red below are those that are incorrect. \[\left[ {\color{red}{\underline{A}}} , B , {\color{red}{\underline{C }}} \right] \] | |||||||

SubstEquiv | [1,[A,B],C] |
[1,[a,b],C] |
1 | ATSubstEquiv_Subst [A = a,B = b,C = C]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ A=a , B=b , C=C \right] \] | |||||||

Sets | |||||||

SubstEquiv | {x^2+1,x^2} |
{A^2+1,A^2} |
1 | ATSubstEquiv_Subst [x = A]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ x=A \right] \] | |||||||

SubstEquiv | {x^2-1,x^2} |
{A^2+1,A^2} |
0 | ATSet_wrongentries. | |||

The following entries are incorrect, although they may appear in a simplified form from that which you actually entered. \[\left \{x^2-1 , x^2 \right \}\] | |||||||

SubstEquiv | {A+1,B^2,C} |
{B,C+1,A^2} |
1 | ATSubstEquiv_Subst [A = C,B = A,C = B]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ A=C , B=A , C=B \right] \] | |||||||

SubstEquiv | {1,{A,B},C} |
{1,{a,b},C} |
1 | ATSubstEquiv_Subst [A = a,B = b,C = C]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ A=a , B=b , C=C \right] \] | |||||||

SubstEquiv | A*cos(t)+B*sin(t) |
P*cos(t)+Q*sin(t) |
1 | ATSubstEquiv_Subst [A = P,B = Q,t = t]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ A=P , B=Q , t=t \right] \] | |||||||

SubstEquiv | A*cos(t)+B*sin(t) |
P*cos(x)+Q*sin(x) |
1 | ATSubstEquiv_Subst [A = P,B = Q,t = x]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ A=P , B=Q , t=x \right] \] | |||||||

Fix some variables. | |||||||

SubstEquiv | A*cos(t)+B*sin(t) |
P*cos(x)+Q*sin(x) |
[x] |
0 | |||

SubstEquiv | A*cos(t)+B*sin(t) |
P*cos(x)+Q*sin(x) |
[t] |
1 | ATSubstEquiv_Subst [A = P,B = Q,t = x]. | ||

Your answer would be correct if you used the following substitution of variables. \[\left[ A=P , B=Q , t=x \right] \] | |||||||

SubstEquiv | A*cos(t)*e^x+B*sin(t)*e^x+C*si n(2*x)+D*cos(2*x) |
P*cos(t)*e^x+Q*sin(t)*e^x+R*si n(2*x)+S*cos(2*x) |
[x,t] |
1 | ATSubstEquiv_Subst [A = P,B = Q,C = R,D = S]. | ||

Your answer would be correct if you used the following substitution of variables. \[\left[ A=P , B=Q , C=R , D=S \right] \] | |||||||

SubstEquiv | sqrt(2*g*y) |
sqrt(2*g*x) |
1 | ATSubstEquiv_Subst [g = g,y = x]. | |||

Your answer would be correct if you used the following substitution of variables. \[\left[ g=g , y=x \right] \] | |||||||

SubstEquiv | sqrt(2*g*y) |
sqrt(2*g*x) |
[g] |
1 | ATSubstEquiv_Subst [y = x]. | ||

Your answer would be correct if you used the following substitution of variables. \[\left[ y=x \right] \] |