Adapt Aurora's Magnitude docs for mp-units
The major missing work here is to see how the latex math, inside dollar signs, translates to the docs. I also added a new constant, `pi`, to make the docs correct: this should be much more user friendly. This is not intended to be "complete". Rather, the goal is to deliver the raw content so that experts can massage it.
This commit is contained in:
1 parent
642663a676
commit
10b553bdbe
3 files changed
+125
No files matched your search
@@ -398,6 +398,11 @@ struct pi_base {
|
||||
static constexpr long double value = std::numbers::pi_v<long double>;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief A convenient Magnitude constant for pi, which we can manipulate like a regular number.
|
||||
*/
|
||||
inline constexpr Magnitude auto pi = magnitude<base_power<pi_base>{}>{};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Magnitude equality implementation.
|
||||
|
||||
|
||||
Reference in new issue
Block a user