-
Notifications
You must be signed in to change notification settings - Fork 1
type dimensionless
kwikius edited this page Jul 28, 2020
·
19 revisions
pqs::dimensionless
#include <pqs/types/dimensionless.hpp>
An instantiable type for representing dimensionlessness in dimensional analysis expressions.
https://en.wikipedia.org/wiki/Dimensional_analysis#Dimensionless_concepts
value | type | notes |
---|---|---|
a | dimensionless | constexpr |
b | dimensionless | constexpr |
r | dimensionless | constexpr |
n | std::intmax_t | |
d | std::intmax_t |
type_function | result | |
---|---|---|
get_exponent<dimensionless> | std::ratio<0,1> |
function | result | notes |
---|---|---|
pqs::dimensionless x; | constexpr constructor | |
pqs::dimensionless y = x; | constexpr copy ctor | |
pqs::dimensionless z; z= x; |
constexpr assignment | |
a * b | r | constexpr |
a / b | r | constexpr |
pow<n>(a) | r | constexpr |
pow<n,d>(a) | r | constexpr |
a == b | true | constexpr |
a != b | false | constexpr |