mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 03:14:29 +02:00
style: pre-commit whitespaces cleanup in ISQ articles
This commit is contained in:
@@ -23,8 +23,7 @@ In this series, we will describe:
|
||||
|
||||
From our experience, many people, including experts in the domain, often tend to name things
|
||||
differently, or sometimes they use the same term while having a different meaning in mind.
|
||||
This is why it is essential to stick to one well-defined glossary of terms
|
||||
for metrology.
|
||||
This is why it is essential to stick to one well-defined glossary of terms for metrology.
|
||||
|
||||
The **mp-units** project consistently uses the official metrology vocabulary defined by the ISO
|
||||
and BIPM:
|
||||
|
@@ -97,7 +97,7 @@ To prevent the above issues, most of the libraries on the market introduce dimen
|
||||
Thanks to that, we could solve the first issue of the previous chapter with:
|
||||
|
||||
```cpp
|
||||
QuantityOf<dim_speed> auto avg_speed(QuantityOf<dim_length> auto distance,
|
||||
QuantityOf<dim_speed> auto avg_speed(QuantityOf<dim_length> auto distance,
|
||||
QuantityOf<dim_time> auto time)
|
||||
{
|
||||
return distance / time;
|
||||
@@ -117,7 +117,7 @@ vector product of those. For example, a quantity of _speed_ has a dimension of $
|
||||
So, to be physically correct, the above code should be rewritten as:
|
||||
|
||||
```cpp
|
||||
QuantityOf<dim_length / dim_time> auto avg_speed(QuantityOf<dim_length> auto distance,
|
||||
QuantityOf<dim_length / dim_time> auto avg_speed(QuantityOf<dim_length> auto distance,
|
||||
QuantityOf<dim_time> auto time)
|
||||
{
|
||||
return distance / time;
|
||||
|
Reference in New Issue
Block a user