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: docs/user/angular_frequency.rst
+34-3
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,43 @@
1
1
.. _angular_frequency:
2
2
3
3
4
-
Angular Frequency
4
+
Angles and Angular Frequency
5
5
=================
6
6
7
+
Angles
8
+
------
9
+
10
+
pint treats angle quantities as `dimensionless`, following the conventions of SI. The base unit for angle is the `radian`.
11
+
The SI BIPM Brochure (Bureau International des Poids et Mesures) states:
12
+
13
+
.. note::
14
+
15
+
Plane and solid angles, when expressed in radians and steradians respectively, are in effect
16
+
also treated within the SI as quantities with the unit one (see section 5.4.8). The symbols rad
17
+
and sr are written explicitly where appropriate, in order to emphasize that, for radians or
18
+
steradians, the quantity being considered is, or involves the plane angle or solid angle
19
+
respectively. For steradians it emphasizes the distinction between units of flux and intensity
20
+
in radiometry and photometry for example. However, it is a long-established practice in
21
+
mathematics and across all areas of science to make use of rad = 1 and sr = 1.
22
+
23
+
24
+
This leads to behavior some users may find unintuitive. For example, since angles have no dimensionality, it is not possible to check whether a quantity has an angle dimension.
25
+
26
+
.. code-block:: python
27
+
28
+
>>>import pint
29
+
>>> ureg = pint.UnitRegistry()
30
+
>>> angle = ureg('1 rad')
31
+
>>> angle.dimensionality
32
+
<UnitsContainer({})>
33
+
34
+
35
+
Angular Frequency
36
+
-----------------
37
+
7
38
`Hertz` is a unit for frequency, that is often also used for angular frequency. For example, a shaft spinning at `60 revolutions per minute` will often be said to spin at `1 Hz`, rather than `1 revolution per second`.
8
39
9
-
By default, pint treats angle quantities as `dimensionless`, so allows conversions between frequencies and angular frequencies. The base unit for angle is the `radian`. This leads to some unintuitive behaviour, as pint will convert angular frequencies into frequencies by converting angles into `radians`, rather than `revolutions`. This leads to converted values `2 * pi` larger than expected:
40
+
Since pint treats angle quantities as `dimensionless`, it allows conversions between frequencies and angular frequencies. This leads to some unintuitive behaviour, as pint will convert angular frequencies into frequencies by converting angles into `radians`, rather than `revolutions`. This leads to converted values `2 * pi` larger than expected:
10
41
11
42
.. code-block:: python
12
43
@@ -16,7 +47,7 @@ By default, pint treats angle quantities as `dimensionless`, so allows conversio
16
47
>>> angular_frequency.to('Hz')
17
48
<Quantity(6.28318531, 'hertz')>
18
49
19
-
pint follows the conventions of SI. The SI BIPM Brochure (Bureau International des Poids et Mesures) states:
50
+
The SI BIPM Brochure (Bureau International des Poids et Mesures) states:
0 commit comments