Click Questions › Create.
The Question Editor opens.
In Mode, select Algebraic.
- Use the answer placeholder string
<_>to specify where the answer box should be displayed. - Be sure that your question identifies any variables that the student should use in their answer.
- Use the answer placeholder string
In the Question Editor, click Mathematica under Page Tools to create and test your Mathematica grading statement and answer key.
In the Mathematica window, type your grading statement, using Mathematica expressions for the answer key and student response that you want to test.
- Your
grading statementis a Mathematica statement providing information about how to compare your answer key and your students' responses. - Your
answer keyis a Mathematica expression specifying the correct answer to the question; sometimes the answer key is one of multiple possible correct answers.
- Your
Click Execute.
Your grading statement is evaluated using the expressions you specified for the answer key and student response, and the result is displayed. If your grading statement evaluates to True, then the response will be marked correct. Otherwise, the response will be marked incorrect.
For example, if your question asks students to calculate an indefinite integral, your grading statement might compare the derivatives of your answer key and of your student's response:

The answer key specifies one of the correct responses: 3 · sin(
x2) + 2x+C. The specified response is also a valid answer and the grading statement evaluates as True.In Answer, type the following items on a single line:
<eqn $CASGRADER='mathematica'; $PAD='devmath'; ''> variable_list:answer_key {tab} grading_statementwhere:
variable_listis a comma-delimited list of the variables used in the answer key.answer_keyis the Mathematica answer key you created in the previous step.grading_statementis the Mathematica grading statement you created, with your answer key and student response expressions replaced by the keywordskeyandresponse. When the question is scored, the actual answer key and student response values will be used in place of these keywords.
For example, the following answer key and grading statement allows students to submit the equation of an ellipse in standard form with the 1 on either side of the equation:
<EQN $CASGRADER='mathematica'; $PAD='devmath';'' > x,y:(x+4)^2/9+(y-5)^2/5 == 1 {tab} Apply[List,key] == {(response)[[1]],(response)[[2]]}||Apply[List,key] == {(response)[[2]],(response)[[1]]}The following responses would be accepted as correct:
or
Responses not in the standard form, such as the following, would be marked incorrect:
Type a Solution.
The solution helps your students understand the steps they need to take to determine the correct answer to the question. Your assignment settings specify when to show the solution.
Example mathPad Question Using Algebraic Mode with Mathematica The following table summarizes an actual question. QID 1344935 Name Template2 4.MATHP.02. Mode Algebraic Question Find the equation in standard form of the following ellipse: <div class="indent"> Center: (-4, 5)<br> Vertices: (-7, 5) and (-1, 5)<br> Foci: (-6, 5) and (-2, 5) </div> <_> Answer <EQN $CASGRADER='mathematica'; $PAD='devmath';'' > x,y:(x+4)^2/9+(y-5)^2/5 == 1 {tab} Apply[List,key] == {(response)[[1]],(response)[[2]]}||Apply[List,key] == {(response)[[2]],(response)[[1]]} Display to Students 
- Create Multiple-Choice Questions
- Create True/False Questions
- Create Yes/No Questions
- Create Multiple-Select Questions
- Create Fill-in-the-Blank Questions
- Create File Upload Questions
- Create Free Response Questions
- Create Image Map Questions
- Create Multi-Part Questions That Have One Question Mode
- Create Multi-Mode Questions
- Create Polling Questions
- Add Expandable Sections to Multi-Part Questions
- Create Scored Tutorial Questions
- Create Popup Tutorial Questions
- Create Integer or Decimal Number Questions
- Create Answer-Dependent Questions
- Create mathPad Questions Using Symbolic Mode
- Create a NumberLine Question
- Create Graphing Questions
- Create chemPad Questions for Formulas
- Create List and Rank-Order chemPad Questions
- Create chemPad Questions for Reactions
- Create chemPad Questions for Kinetic or Equilibrium Expressions
- Create chemPad Questions for Electrochemical Cell Notation
- Create chemPad Questions for Electron Configuration
- Create Marvin JS Questions That Require Students to Create a New Drawing
- Create Marvin JS Questions That Display an Initial Drawing
- Create Marvin JS Questions That Use Canonical or Combinatorial SMILES Strings
- Randomize Question Values
- Evaluation Modes for Math Questions
- reference.wolfram.com/language/
- Create Answer Keys for Questions Using Algebraic Mode with Mathematica
- The {tab} Operator
- Change Tolerance for Numerical Questions