Enter math expressions from your keyboard
Updated 30 Aug 2024
Use the following keystrokes to enter specially formatted characters, symbols, or functions for the correct or incorrect answer boxes in the numeric value or symbolic expression answer type. Keystrokes for engineering math
Students can enter similar keystrokes to answer these kinds of questions on a computer. Otherwise they can use the toolbar options provided above the answer box for this answer type.
For this math format | Type this from your keyboard | What the student types |
---|---|---|
(subscript) |
_
(underbar) |
_
(underbar) |
(exponent) |
^ | ^ |
(fraction)* |
/ |
/ |
(decimal point) |
. | . |
( and ) | ( and ) | |
[ and ] | [ and ] | |
{ and } | { and } | |
|
+ | + |
(minus sign) |
- (hyphen) | - (hyphen) |
(multiplication dot) |
* (asterisk) | * (asterisk) |
(square root) |
sqrt | \sqrt |
(absolute value) |
abs | | |
(vector) |
x_vec | \vec |
(unit vector) |
x_unit | \hat |
*To enter an expression with multiplication in the numerator: Choose from the Templates menu for the correct format. (You cannot use /.)
Although students must enter the backslash (\) character before these terms in their typed responses, you don't need to enter the backslash when working with symbolic answers for the numeric value or symbolic expression answer type in the Simple Editor.
For this letter | Enter this from your keyboard |
---|---|
alpha | |
beta | |
gamma | |
Delta, delta | |
epsilon | |
eta | |
theta | |
kappa | |
lambda | |
mu | |
nu | |
pi | |
rho | |
Sigma, sigma | |
tau | |
phi | |
chi | |
Psi, psi | |
Omega, omega | |
EMF | |
hbar |
Note that functions are case sensitive.
By default, the arguments of trigonometric functions are in radians, not degrees. How to set the arguments to degrees for an item When the answer should be in degrees, be sure to specify this in the question instructions. (Otherwise, students may expect that they should be answering in radians.)
For this special function | Enter this from your keyboard |
What the student types |
---|---|---|
arccosine | acos(x) | arccos(x), acos(x), or cos^-1(x) |
arccotangent | acot(x) | arccot(x), acot(x), or cot^-1(x) |
arccosecant | ascs(x) | arcscs(x), ascs(x) or csc^-1(x) |
arcsecant | asec(x) | arcsec(x), asec(x), or sec^-1(x) |
arcsine | asin(x) | arcsin(x), asin(x), or sin^-1(x) |
arctangent | atan(x) | arctan(x), atan(x), or tan^-1(x) |
cosine | cos(x) | cos(x) |
cotangent | cot(x) | cot(x) |
cosecant | csc(x) | csc(x) |
natural exponential function (e = 2.71828...) |
e^x or exp(x) Avoid using the numeric value or symbolic expression answer type for large positive or negative exponents, such as exp(37000) or exp(-37000). Currently Mastering doesn’t always evaluate large exponents correctly. Instead, use another answer type, like multiple choice or multiselect. |
e^x or exp(x) |
natural logarithm (base e) | ln(x) | ln(x) |
common logarithm (base 10) | log(x) | log(x) |
secant | sec(x) | sec(x) |
sine | sin(x) | sin(x) |
tangent | tan(x) | tan(x) |
The following special functions are available in Mastering for authors, but are not needed by students.
For this special function | Enter this from your keyboard |
Purpose and example |
---|---|---|
ceiling | ceil(value) | Purpose:
Rounds a value up to the nearest integer. Example: |
floor | floor(value) | Purpose:
Rounds a value down to the nearest integer. Example: |
ifthenelse | ifthenelse(test,true_value,false_value) | Purpose:
Returns one of two values, depending on the result of a logical test. Example: |
integer | int(value) | Purpose:
Same as the floor function (rounds a value down to the nearest integer). Example: |
random | rand(range-start,range-end,exponent) | Purpose:
Generates a random number within a specified range, optionally rounded to a specific power of 10. Example: |
round | round(value, exponent) | Purpose:
Rounds a value to a specific power of 10. Example: |
significant digits | sigdig(value, exponent) | Purpose:
Rounds a value to a specific number of significant digits. Example: |
To move the cursor within the answer: Use keyboard arrow keys (, , , ).