You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/docs/user.md
+147-1
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,147 @@ When `physical_quantity` the evaluation function will generate feedback based on
63
63
64
64

65
65
66
+
## `strictness`
67
+
68
+
Constrols the conventions used when parsing physical quantities.
69
+
70
+
**Remark:** If `physical_quantity` is set to `false`, this parameter will be ignored.
71
+
72
+
There are three possible values: `strict`, `natural` and `legacy`. If `strict` is chosen then quantities will be parsed according to the conventions described in 5.1, 5.2, 5.3.2, 5.3.3 in https://www.bipm.org/documents/20126/41483022/si_brochure_8.pdf and 5.2, 5.3, 5.4.2 and 5.4.3 in https://www.bipm.org/documents/20126/41483022/SI-Brochure-9-EN.pdf. If `natural` is chosen then less restrictive conventions are used.
73
+
74
+
**Remark:** The default setting is `natural`.
75
+
76
+
**Remark:** The `legacy` setting should not be used and is only there to allow compatibility with content designed for use with older versions of the evaluation function. If you encounter a question using the `legacy` setting is recommended that it is changed to another setting and the answer is redefined to match the chosen conventions.
77
+
78
+
## `units_string`
79
+
80
+
Controls what sets of units are used. There are three values `SI`, `common` and `imperial`.
81
+
82
+
If `SI` is chosen then only units from the tables `Base SI units` and `Derived SI units` (below) are allowed (in combinations with prefixes). If `common` is chosen then all the units allowed by `SI` as well as those listed in the tables for `Common non-SI units`. If `imperial` is chosen the base SI units and the units listed in the `Imperial units` table are allowed.
83
+
84
+
**Remark:** The different settings can also be combine, e.g. `SI common imperial` will allow all units.
85
+
86
+
### Notation and definition of units
87
+
88
+
#### Table: Base SI units
89
+
90
+
SI base units based on Table 2 in https://www.bipm.org/documents/20126/41483022/SI-Brochure-9-EN.pdf
91
+
92
+
Note that gram is used as a base unit instead of kilogram.
93
+
94
+
| SI base unit | Symbol | Dimension name |
95
+
|--------------|:-------|:--------------------|
96
+
| metre | m | length |
97
+
| gram | g | mass |
98
+
| second | s | time |
99
+
| ampere | A | electriccurrent |
100
+
| kelvin | k | temperature |
101
+
| mole | mol | amountofsubstance |
102
+
| candela | cd | luminousintensity |
103
+
104
+
#### Table: SI prefixes
105
+
106
+
SI prefixes based on Table 7 in https://www.bipm.org/documents/20126/41483022/SI-Brochure-9-EN.pdf
107
+
108
+
| SI Prefix | Symbol | Factor || SI Prefix | Symbol | Factor |
Commonly used non-SI units based on Table 8 in https://www.bipm.org/documents/20126/41483022/SI-Brochure-9-EN.pdf and Tables 7 and 8 in https://www.bipm.org/documents/20126/41483022/si_brochure_8.pdf
154
+
Note that the function treats angles, neper and bel as dimensionless values.
155
+
156
+
Note that only the first table in this section has short form symbols defined, the second table does not, this is done to minimize ambiguities when writing units.
| fluid ounce | fl oz | $28.4130625~\mathrm{millilitre}$ |
199
+
| gill | gi | $142.0653125~\mathrm{millilitre}$ |
200
+
| pint | pt | $568.26125~\mathrm{millilitre}$ |
201
+
| quart | qt | $1.1365225~\mathrm{litre}$ |
202
+
| gallon | gal | $4546.09~\mathrm{litre}$ |
203
+
| ounce | oz | $28.349523125~\mathrm{gram}$ |
204
+
| pound | lb | $0.45359237~\mathrm{kilogram}$ |
205
+
| stone | st | $6.35029318~\mathrm{kilogram}$ |
206
+
66
207
## `plus_minus` and `minus_plus`
67
208
68
209
The $\pm$ and $\mp$ symbols can be represented in the answer or response by `plus_minus` and `minus_plus` respectively.
@@ -81,15 +222,20 @@ If `strict_syntax` is set to false, then `*` can be omitted and `^` used instead
81
222
82
223
By default `strict_syntax` is set to true.
83
224
225
+
## `strictness`
226
+
This parameter is only used when `physical_quantity` is set to `true`. It accepts three possible values: `strict`, `natural` and `legacy`.
227
+
`strict`:
228
+
84
229
## `symbol_assumptions`
85
230
86
231
This input parameter allows the author to set an extra assumption each symbol. Each assumption should be written on the form `('symbol','assumption name')` and all pairs concatenated into a single string.
87
232
88
-
The possible assumption`constant`, `function` as well as those listed here:
233
+
The possible assumptions are:`constant`, `function` as well as those listed here:
0 commit comments