When typing the answer key for a question in Symbolic mode, you can include a broad range of mathematical expressions.
Specifying Numeric Values in Answer Keys
Do not use commas to separate digits in numbers. This can cause ambiguous answer keys and let
your students receive credit for incorrect answers. For example, x + 1,234
is
interpreted both as 1234 + x
and as a list with two elements:
x + 1
and 234
.
Do not use mixed numbers. Instead, use improper fractions or express the mixed number as a
sum, for example 7/4
or 1+3/4
.
Specifying Math Variables in Answer Keys
Although not always required, you can declare your math variables at the beginning of the answer key in a commadelimited list ending with a colon, as in the following example.
x_1, y_1, x_2, y_2: sqrt((x_1x_2)^2 + (y_1y_2)^2)
Variable names in answer keys must observe the following conventions:
 Variable names must start with a letter.
 Variable names must include only letters, numbers, and underscores; underscores in variable names indicate subscripting.
 Variable names are casesensitive; X is different from x.
 Variable names should not duplicate the names of functions or of the numeric value pi.
 Variables having the names of Greek letters are displayed in mathPad and calcPad as the corresponding Greek letters. Greek letters except for π are treated as variables. The letter π is treated as a constant.
 The variable e can be used, but it will be treated as both Euler's number and as a variable name, so either response is marked correct.
The following table lists some examples.
Math Notation 
Answer Key Notation 

x 

x1 

x_{1} 

books 

λ 

Be sure that your question identifies any variables that the student should use in the answer.
Specifying Perl Variables in Answer Keys
If you have defined a Perl variable for use in your answer key — for example, to randomize
numeric values in your question — always enclose it with the <EQN>
tag as
in the following example:
<EQN $d>x + <EQN $e>
To avoid confusion, use different names for Perl variables and math variables in your question. For more information variables, see Perl Variables for Math Questions (Algebraic and Symbolic Modes) and Default Values and Tolerance for Symbolic Evaluation
Specifying Math Expressions in Answer Keys
The functions and values in the following table are casesensitive for example,
ABS(x)
cannot be substituted for abs(x)
.
For many functions in the following table, parentheses can be omitted if the argument is simple and unambiguous — for example, a single variable or constant. Include parentheses when you need to ensure that a specific order of operations is observed. The default order of operations for symbolic answer keys is: subscripts, then factorials, then exponentiation, then multiplication and division, then addition and subtraction.
Expression 
Math Notation 
Symbolic Answer Key Notation 
Notes 

Addition 
x + y 


Subtraction 
x − y 


Multiplication 
2x 

No distinction is made between explicit or implicit multiplication. 
Division or fractions 
x ÷ 3 

No distinction is made between responses specified as stacked fractions or using the division sign (÷). 
Exponentiation 
x^{3} 


Square root 


Other roots 

rootn(x) works only when n is an integer. 

Subscript 
x_{n} 

If the subscript includes mathematical operators, including implicit multiplication, enclose it in parentheses. 
Factorial 
x! 

Factorials are calculated only for natural numbers. 
Absolute value 
x 


Greek letters 
α + β 

Type the name of lowercase Greek letters in lowercase. Type the names of uppercase Greek letters in proper case. Greek letters except for π are treated as variables. The letter π is treated as a constant. In mathPad, your students must type the names of all Greek letters except for π and θ. 
Pi (π) 
π 

Substituting 3.14 only approximates this value. You and your students should use pi to indicate the exact value of pi unless the question specifically instructs the student to use an approximation to pi. 
Euler's number 
e 


Exponential function 
e^{3} 


Logarithm (base 10) 
log x 


Logarithm (arbitrary base) 
log_{16}(x) 

If the base is anything other than a number, enclose it in parentheses. 
Natural logarithm 
ln x 


Grouping, Order of Operations 
4 (x + 1) 

No distinction is made among the three types of grouping symbols. Parentheses can also be used to delimit ordered tuples; braces can also be used to delimit unordered lists. 
Scientific / "e" notation 
2.46 × 10^{6} 


Trigonometric functions 
sin x 

Angles are expressed in radians. 
Inverse trigonometric functions 
arcsin x 

Angles are expressed in radians. For each inverse trigonometric function, you can abbreviate "arc" to "a" as in

Hyperbolic functions 
sinh x 

In mathPad questions, your students must type these functions rather than selecting them from mathPad. Specify inverse hyperbolic functions using the ^{1} notation as for trigonometric functions. 
Ordered pairs, ordered tuples 
(x, y) 

Commadelimited lists in parentheses are evaluated as ordered tuples. 
Sets, unordered lists of elements 
{1, 2} 

To accept only standard roster notation with braces, set By default, your students' responses will match your key if they enumerate every element at
least once, regardless of repetition. Thus, {1,2,2} = {1,2}. To require your students to
enumerate all instances of repeated elements in a set, set 
Infinity 
∞ 


Undefined 
UNDEFINED 


Degree 
30° 

Degrees are not evaluated mathematically by default. For this reason, your students must
enter the exact form of the answer that you provide and not a mathematically equivalent
response. For example, if you specified 
Imaginary unit 
i 


No solution 
NO SOLUTION 


Empty set 
empty 

Use only for mathPad questions. 