Skip to content

Commit ef1574b

Browse files
authored
Update NumericUnits.md
1 parent f413855 commit ef1574b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/teacher/reference/response_area_components/NumericUnits.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ Provides two input fields with `Number` and `Units` placeholder texts. This area
77
## Component Parameters
88
### `pre_response_text` & `post_response_text` (optional)
99
Text block to be displayed to the left and right of the input field respectively. Markdown and LaTeX are allowed following the usual syntax.
10+
1011
### Comparing units
12+
This is done using the **compareExpressions** evaluation function.
13+
1114
By ticking the `physical_quantity (boolean)` option in the *Evaluate* tab, answers with different units from the reference answer can be compared.
1215

1316
![physical quantity ticked](screenshots/physical_quantity.png)
@@ -20,6 +23,8 @@ For example, if the reference answer is 100 m, the following answers will also b
2023

2124
See [here](https://lambda-feedback.github.io/user-documentation/user_eval_function_docs/compareExpressions/#4-checking-the-value-of-an-expression-or-a-physical-quantity) for more information
2225
### Tolerances
26+
This is done using the **compareExpressions** evaluation function.
27+
2328
Tolerances can be added to your answer using the `atol (number)` and `rtol (number)` fields, which denote absolute and relative tolerances respectively.
2429

2530
## Response Structure

0 commit comments

Comments
 (0)