forked from mpusz/mp-units
style: formatting fixed to make pre-commit happy
This commit is contained in:
@@ -527,10 +527,7 @@ template<QuantitySpec Lhs, detail::QuantityKindSpec Rhs>
|
|||||||
return is_same_v<Lhs, std::remove_const_t<decltype(remove_kind(rhs))>>;
|
return is_same_v<Lhs, std::remove_const_t<decltype(remove_kind(rhs))>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] consteval QuantitySpec auto inverse(QuantitySpec auto q)
|
[[nodiscard]] consteval QuantitySpec auto inverse(QuantitySpec auto q) { return dimensionless / q; }
|
||||||
{
|
|
||||||
return dimensionless / q;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -80,6 +80,6 @@ QUANTITY_SPEC(attenuation, inverse(distance));
|
|||||||
inline constexpr auto extinction = attenuation;
|
inline constexpr auto extinction = attenuation;
|
||||||
QUANTITY_SPEC(phase_coefficient, phase_angle / path_length);
|
QUANTITY_SPEC(phase_coefficient, phase_angle / path_length);
|
||||||
QUANTITY_SPEC(propagation_coefficient, inverse(length)); // γ = α + iβ where α denotes attenuation
|
QUANTITY_SPEC(propagation_coefficient, inverse(length)); // γ = α + iβ where α denotes attenuation
|
||||||
// and β the phase coefficient of a plane wave
|
// and β the phase coefficient of a plane wave
|
||||||
|
|
||||||
} // namespace mp_units::isq
|
} // namespace mp_units::isq
|
||||||
|
Reference in New Issue
Block a user