Note: You are currently viewing documentation for Moodle 3.3. Up-to-date documentation for the latest stable version of Moodle is probably available here: System of units.

System of units: Difference between revisions

From MoodleDocs
(Redirected page to Formulas: Systems of units)
 
(98 intermediate revisions by the same user not shown)
Line 1: Line 1:
[https://docs.moodle.org/33/en/Formulas_question_type < Formulas question type]
#REDIRECT [[Formulas:_Systems_of_units]]
 
==Writing unit symbols==
 
In the Formulas question type, the writing of the units differs slightly from that in the SI because units are entered very simply on the computer. The rules for entering units are described below.
* The multiplication of unit symbols is indicated by a space, as prescribed in Section 5.1 of SI. The half-high (centred) dot (⋅) is not supported. For example, input 50 kN m, or 50 kN⋅m, as follows:<br>
      <pre style="font-size:113%;">50 kN m</pre>
* Division of unit symbols is indicated by a solidus (oblique stroke, <span style="font-family:monospace;font-size:113%;">/</span>) or by negative exponents.For example, input 10 m/s, or 10 m s<sup>-1</sup>, as follows:<br>
      <pre style="font-size:113%;">10 m/s</pre>    or    <pre style="font-size:113%;">10 m s^(-1)</pre>
* Exponentiation is indicated by the circumflex accent (<span style="font-family:monospace;font-size:113%;">^</span>, UTF-8 <span style="font-family:monospace;font-size:113%;"><span style="font-size:165%;">﹠</span>#94;</span> or ASCII code 94 (alt+94)).For example, input 4.7 m<sup>2</sup>, as follows:<br>
      <pre style="font-size:113%;">4.7 m^2</pre>
* Parentheses are required when there is a risk of misinterpretation. For example, '''do not input 8 kN m^-2''' but rather:
      <pre style="font-size:113%;">8 kN m^(-2)</pre>
* Permutations of the unit symbols are allowed. For example, the following two entries are considered identical:
      <pre style="font-size:113%;">3 m kg s^(-2)</pre>    or    <pre style="font-size:113%;">3 kg m/s^2</pre>
 
==Units==
 
The system of units of the Formulas question type complies with the [https://www.bipm.org/en/publications/si-brochure/ International System of Units (SI)] (available free of charge). In the International System of Units (SI) units are classified as either base units or derived units ([https://www.bipm.org/en/publications/si-brochure/ SI]).
 
Units of the Formulas question type system of units are the same as those of the set of coherent SI units and as the units outside the SI.
 
There are seven base units in the SI:
 
{| class="nicetable"
|-
! Name
! Symbol
! Formulas question type input
|-
| metre
| m
| m
|-
| kilogram
| kg
| kg
|-
| second
| s
| s
|-
| ampere
| A
| A
|-
| kelvin
| K
| K
|-
| mole
| mol
| mol
|-
| candela
| cd
| cd
|}
 
Coherent derived units are simple products of powers of base units. Some examples of coherent derived units are as follows:
 
{| class="nicetable"
|-
! Name
! Symbol
! colspan="2" | Formulas question type<br><span style="font-weight:normal">Input from either column is acceptable</span>
|-
| square meter
| m<sup>2</sup>
| m^2
|
|-
| cubic meter
| m<sup>3</sup>
| m^2
|
|-
| meter per second
| m/s
| m/s
| m s^(-1)
|-
| meter per second squared
| m/s<sup>2</sup>
| m/s^2
| m s^(-2)
|-
| reciprocal metre
| m<sup>-1</sup>
| m^(-1)
|
|-
| kilogram per cubic metre
| kg/m<sup>3</sup>
| kg/m^3
| kg m^(-3)
|-
| kilogram per square metre
| kg/m<sup>2</sup>
| kg/m^2
| kg m^(-2)
|-
| cubic metre per kilogram
| m<sup>3</sup>/kg
| m^3/kg
| m^3 kg^(-1)
|-
| ampere per square metre
| A/m<sup>2</sup>
| A/m^2
| A m^(-2)
|-
| etc.
|
|
|
|}
 
Some coherent derived units have special names and symbols:
 
{| class="nicetable"
|-
! Name
! Symbol
! colspan="3" | Formulas question type<br><span style="font-weight:normal">Input from either column is acceptable</span>
|-
| radian
| rad
| rad
|
| m/m
|-
| steradian
| sr
| sr
|
| m^2/m^2
|-
| hertz
| Hz
| Hz
|
| s^(-1)
|-
| newton
| N
| N
|
| m kg s^(-2)
|-
| pascal
| Pa
| Pa
| N/m^2
| m^(-1) kg s^(-2)
|-
| joule
| J
| J
| N m
| m^2 kg s^(-2)
|-
| watt
| W
| W
| J/s
| m^2 kg s^(-3)
|-
| coulomb
| C
| C
|
| s A
|-
| volt
| V
| V
| W/A
| m^2 kg s^(-3) A^(-1)
|-
| farad
| F
| F
|
|
|-
| ohm
| Ω
|
|
|
|-
| siemens
| S
| S
|
|
|-
| weber
| Wb
| Wb
|
|
|-
| tesla
| T
| T
|
|
|-
| henry
| H
| H
|
|
|-
| degree Celcius
| ℃
| ℃
|
|
|-
| lumen
| lm
| lm
|
|
|-
| lux
| lx
| lx
|
|
|-
| becquerel
| Bq
|
|
|
|-
| gray
| Gy
|
|
|
|-
| sievert
| Sv
|
|
|
|-
| katal
| kat
|
|
|
|}
 
The base and coherent derived units of the SI form a coherent set, designated the set of coherent SI units.
 
There are also units outside the SI. Non-SI units accepted for use with the SI are:
 
{| class="nicetable"
|-
! Name
! Symbol
! Formulas question type input
|-
| minute
| min
| min
|-
| hour
| h
| h
|-
| day
| d
| d
|-
| degree (plan angle)
| °
|
|-
| minute (plan angle)
| ′
|
|-
| second (plan angle)
| ″
|
|-
| hectare
| ha
| ha
|-
| litre
| L, l
| L or l
|-
| tonne
| t
| t
|}
 
==Combined units==
 
Under each '''Part _''' on the '''Formulas question''' page, define '''Unit''' as single and combined units separated by <span style="font-family:monospace;font-size:113%;">=</span>. For example:
 
<pre style="font-size:113%;">Pa = N/m^2 = m^(-1) kg s^(-2)</pre>
 
==SI Prefixes==
The '''SI''' and '''Formulas question''' prefixes are given in the table below. The only difference between the two systems is that the prefix micro is written μ in the SI but entered as u in the Formulas question.
 
{| class="nicetable"
|-
! Factor
! Name
! SI symbol
! Formulas question<br>input
!         
! Factor
! Name
! SI symbol
! Formulas question<br>input
|-
| 10<sup>1</sup>
| deca
| da
| da
|
| 10<sup>-1</sup>
| deci
| d
| d
|-
| 10<sup>2</sup>
| hecto
| h
| h
|
| 10<sup>-2</sup>
| centi
| c
| c
|-
| 10<sup>3</sup>
| kilo
| k
| k
|
| 10<sup>-3</sup>
| milli
| m
| m
|-
| 10<sup>6</sup>
| mega
| M
| M
|
| 10<sup>-6</sup>
| micro
| μ
| u
|-
| 10<sup>9</sup>
| giga
| G
| G
|
| 10<sup>-9</sup>
| nano
| n
| n
|-
| 10<sup>12</sup>
| tera
| T
| T
|
| 10<sup>-12</sup>
| pico
| p
| p
|-
| 10<sup>15</sup>
| peta
| P
| P
|
| 10<sup>-15</sup>
| femto
| f
| f
|-
| 10<sup>18</sup>
| exa
| E
| E
|
| 10<sup>-18</sup>
| atto
| a
| a
|-
| 10<sup>21</sup>
| zetta
| Z
| Z
|
| 10<sup>-21</sup>
| zepto
| z
| z
|-
| 10<sup>24</sup>
| yotta
| Y
| Y
|
| 10<sup>-24</sup>
| yocto
| y
| y
|}
 
==Assigning prefixes to units==
 
Prefixes can be assigned to units. Specify the unit followed by a list of the prefixes. For example:
 
<pre style="font-size:113%;">W: k M G T;</pre>
 
is equivalent to <span style="font-family:monospace;font-size:113%;">1 W = 1e-3 kW = 1e-6 MW = 1e-9 GW = 1e-12 TW</span>.
 
==Conversion rules==
 
Conversion rules allow students to use alternative units.
 
===Common conversion rules===
 
Under '''Extra Options''' on the '''Formulas question''' page, for  / [Global - Basic conversion rules], select '"Common SI unit"' in order to use predefined common SI units conversion rules. With this setting, the following answers are equivalent:
 
<pre style="font-size:113%;">
5 s
5000 ms
5e9 ns
</pre>        
<pre style="font-size:113%;">
0.2 m/s
200 mm/s
 
</pre>        
<pre style="font-size:113%;">
1 m^2
10000 cm^2
1e-6 km^2
</pre>
 
Select '''None''' if the '''Common SI unit''' contradicts your custom rules.
 
===Custom rules===
The conversion of single units can be specified by equating their values. For example:
 
<pre style="font-size:113%;">
1 m = 100 cm = 1000 mm;
1 cm = 0.3937 inch;
</pre>
 
With the above conversion rule, the following answers are equivalent:
<pre style="font-size:113%;">
10 inch
25.4 cm
254 mm
0.254 m
</pre>
 
See the file '''conversion_rules.php'''.
 
==Marking==
 
The system of units allows to test students' knowledge of units. Alternative equivalent units are allowed.
 
You can specify mark fraction deduction for a wrong unit. The wrong unit here means that the unit that is not convertible to the correct unit, under conversion rules. Suppose a student get 2 marks for this subquestion answer. If the unit penalty = 0.2 and she give wrong unit, then the student can get 2(1-0.2) = 1.6 mark for this submission. (See Grading scheme).
 
If a teacher does not specify any unit for the subquestion, then the unit box will not be displayed and there is no need for students to enter it. However, if the student enters anything after their answer, it is usually considered to be incorrect so the mark of unit will be deduced. Hence, in the above case, it is better to set 1 for mark deduction.
 
Nevertheless, if you do not want to penalize the student entering arbitrary string at the end of answer, set 0 for mark deduction. i.e. their unit does not count toward their grade, but you still allow student use any convertible unit. Note that you have assumed a default answer that does not require unit.
 
 
[https://docs.moodle.org/33/en/Formulas_question_type < Formulas question type]

Latest revision as of 01:45, 22 January 2018