## STACK Documentation

Documentation home | Category index | Site map# NumRelative: 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.

## NumRelative

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

Basic tests | |||||||

NumRelative | 1/0 |
0 |
-1 | ATNumRelative_STACKERROR_SAns. | |||

TEST_FAILED | |||||||

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

NumRelative | 0 |
1/0 |
-1 | ATNumRelative_STACKERROR_TAns. | |||

TEST_FAILED | |||||||

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

NumRelative | 0 |
0 |
1/0 |
-1 | ATNumRelative_STACKERROR_Opt. | ||

TEST_FAILED | |||||||

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

NumRelative | 0 |
(x |
-1 | ATNumRelativeTEST_FAILED-Empty TA. | |||

The answer test failed to execute correctly: please alert your teacher. Attempted to execute an answer test with an empty teacher answer, probably a CAS validation problem when authoring the question. | |||||||

NumRelative | 1.5 |
1.5 |
x |
-1 | ATNumerical_STACKERROR_tol. | ||

The numerical tolerance for ATNumerical should be a floating point number, but is not. This is an internal error with the test. Please ask your teacher about this. | |||||||

NumRelative | 1 |
0 |
(x |
0 | |||

NumRelative | x=1.5 |
1.5 |
0 | ATNumerical_SA_not_number. | |||

Your answer should be a floating point number, but is not. | |||||||

NumRelative | 1.5 |
x=1.5 |
0 | ATNumerical_SB_not_number. | |||

The value supplied for the teacher's answer should be a floating point number, but is not. This is an internal error with the test. Please ask your teacher about this. | |||||||

No option, so 5% | |||||||

NumRelative | 1.1 |
1 |
0 | ||||

NumRelative | 1.05 |
1 |
1 | ||||

NumRelative | 0.95 |
1 |
1 | ||||

NumRelative | 0.949 |
1 |
0 | ||||

NumRelative | 1.05e33 |
1e33 |
1 | ||||

NumRelative | 1.06e33 |
1e33 |
0 | ||||

NumRelative | 0.95e33 |
1e33 |
1 | ||||

NumRelative | 0.949e33 |
1e33 |
0 | ||||

NumRelative | 1.05e-33 |
1e-33 |
1 | ||||

NumRelative | 1.06e-33 |
1e-33 |
0 | ||||

NumRelative | 0.95e-33 |
1e-33 |
1 | ||||

NumRelative | 0.949e-33 |
1e-33 |
0 | ||||

Remove display dp etc. | |||||||

NumRelative | 1 |
displaydp(1.05,2) |
0.1 |
1 | |||

NumRelative | 1000 |
displaysci(1.05,2,3) |
0.1 |
1 | |||

Options passed | |||||||

NumRelative | 1.05 |
1 |
0.1 |
1 | |||

NumRelative | 1.05 |
3 |
0.1 |
0 | |||

NumRelative | 3.14 |
pi |
0.001 |
1 | |||

Infinity | |||||||

NumRelative | inf |
0 |
0 | ATNumerical_SA_not_number. | |||

Your answer should be a floating point number, but is not. | |||||||

Lists | |||||||

NumRelative | 1 |
[1,2] |
0 | ATNumerical_SA_not_list. | |||

Your answer should be a list, but is not. Note that the syntax to enter a list is to enclose the comma separated values with square brackets. | |||||||

NumRelative | [1,2] |
[1,2,3] |
0 | ATNumerical_wronglen. | |||

Your list should have \\(3\\) elements, but it actually has \\(2\\). | |||||||

NumRelative | [1,2] |
[1,2] |
1 | ||||

NumRelative | [3.141,1.414] |
[pi,sqrt(2)] |
1 | ||||

NumRelative | [3,1.414] |
[pi,sqrt(2)] |
0.01 |
0 | ATNumerical_wrongentries SA/TA=[3.0]. | ||

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

NumRelative | [3,1.414] |
{pi,sqrt(2)} |
0.01 |
0 | ATNumerical_SA_not_set. | ||

Your answer should be a set, but is not. Note that the syntax to enter a set is to enclose the comma separated values with curly brackets. | |||||||

NumRelative | {1.414,3.1} |
{significantfigures(pi,6),sqrt (2)} |
0.01 |
0 | ATNumerical_wrongentries: TA/SA=[3.14159], SA/TA=[3.1]. | ||

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

NumRelative | {1.414,3.1} |
{pi,sqrt(2)} |
0.1 |
1 | |||

NumRelative | {0,1,2} |
{0,1,2} |
0.1 |
1 | |||

Complex numbers | |||||||

NumRelative | 0.99*%i |
%i |
0.1 |
0 | ATNumerical_SA_not_number. | ||

Your answer should be a floating point number, but is not. |

Documentation home | Category index | Site map

The STACK documentation is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.