ARTS 2.5.11 (git: 6827797f)
arts_constexpr_math.h
Go to the documentation of this file.
1
15#ifndef CONSTANT_MATHS_IN_ARTS_H
16#define CONSTANT_MATHS_IN_ARTS_H
17
19namespace Math {
21constexpr auto pow2(auto x) noexcept { return x * x; }
22
24constexpr auto pow3(auto x) noexcept { return pow2(x) * x; }
25
27constexpr auto pow4(auto x) noexcept { return pow2(pow2(x)); }
28} // namespace Math
29
30#endif
Namespace containing several constants, physical and mathematical.
constexpr auto pow3(auto x) noexcept
power of three
constexpr auto pow4(auto x) noexcept
power of four
constexpr auto pow2(auto x) noexcept
power of two