#include <muu/half.h>
template <>
muu::constants<half> struct

16-bit half-precision float constants.

Conversions

static T degrees_to_radians constexpr
Conversion factor for converting degrees into radians.
static T radians_to_degrees constexpr
Conversion factor for converting radians into degrees.

Floating-point

static int decimal_digits constexpr
The number of significant decimal digits that can be exactly represented.
static T default_epsilon constexpr
The default epsilon used by approx_equal.
static T infinity constexpr
Positive infinity.
static T nan constexpr
Not-A-Number (quiet)
static T negative_infinity constexpr
Negative infinity.
static T negative_zero constexpr
-0.0
static T signaling_nan constexpr
Not-A-Number (signalling)
static int significand_digits constexpr
The number of significand (mantissa) digits.

Integers

static T eight constexpr
8
static T five constexpr
5
static T four constexpr
4
static T nine constexpr
9
static T one constexpr
1
static T one_hundred constexpr
100
static T seven constexpr
7
static T six constexpr
6
static T ten constexpr
10
static T three constexpr
3
static T two constexpr
2
static T zero constexpr
0

Irrational numbers and ratios

static T e constexpr
e
static T e_over_eight constexpr
e / 8
static T e_over_five constexpr
e / 5
static T e_over_four constexpr
e / 4
static T e_over_seven constexpr
e / 7
static T e_over_six constexpr
e / 6
static T e_over_three constexpr
e / 3
static T e_over_two constexpr
e / 2
static T eight_over_e constexpr
8 / e
static T eight_over_phi constexpr
2 / phi
static T eight_over_pi constexpr
8 / pi
static T eight_over_three_pi constexpr
8 / (3 * pi)
static T five_over_e constexpr
5 / e
static T five_over_phi constexpr
2 / phi
static T five_over_pi constexpr
5 / pi
static T five_over_three_pi constexpr
5 / (3 * pi)
static T five_over_two_pi constexpr
5 / (2 * pi)
static T four_over_e constexpr
4 / e
static T four_over_five constexpr
4 / 5
static T four_over_phi constexpr
2 / phi
static T four_over_pi constexpr
4 / pi
static T four_over_seven constexpr
4 / 7
static T four_over_three constexpr
4 / 3
static T four_over_three_pi constexpr
4 / (3 * pi)
static T one_over_e constexpr
1 / e
static T one_over_eight constexpr
1 / 8
static T one_over_five constexpr
1 / 5
static T one_over_four constexpr
1 / 4
static T one_over_one_hundred constexpr
1 / 100
static T one_over_one_thousand constexpr
1 / 1000
static T one_over_phi constexpr
1 / phi
static T one_over_pi constexpr
1 / pi
static T one_over_seven constexpr
1 / 7
static T one_over_six constexpr
1 / 6
static T one_over_sqrt_e constexpr
1 / sqrt(e)
static T one_over_sqrt_phi constexpr
1 / sqrt(phi)
static T one_over_sqrt_pi constexpr
1 / sqrt(pi)
static T one_over_sqrt_three constexpr
1 / sqrt(3)
static T one_over_sqrt_three_pi constexpr
1 / sqrt(3 * pi)
static T one_over_sqrt_two constexpr
1 / sqrt(2)
static T one_over_sqrt_two_pi constexpr
1 / sqrt(2 * pi)
static T one_over_ten constexpr
1 / 10
static T one_over_three constexpr
1 / 3
static T one_over_three_pi constexpr
1 / (3 * pi)
static T one_over_two constexpr
1 / 2
static T one_over_two_pi constexpr
1 / (2 * pi)
static T phi constexpr
phi
static T phi_over_eight constexpr
phi / 8
static T phi_over_five constexpr
phi / 5
static T phi_over_four constexpr
phi / 4
static T phi_over_seven constexpr
phi / 7
static T phi_over_six constexpr
phi / 6
static T phi_over_three constexpr
phi / 3
static T phi_over_two constexpr
phi / 2
static T pi constexpr
pi
static T pi_over_eight constexpr
pi / 8
static T pi_over_five constexpr
pi / 5
static T pi_over_four constexpr
pi / 4
static T pi_over_seven constexpr
pi / 7
static T pi_over_six constexpr
pi / 6
static T pi_over_three constexpr
pi / 3
static T pi_over_two constexpr
pi / 2
static T seven_over_e constexpr
7 / e
static T seven_over_phi constexpr
2 / phi
static T seven_over_pi constexpr
7 / pi
static T seven_over_three_pi constexpr
7 / (3 * pi)
static T seven_over_two_pi constexpr
7 / (2 * pi)
static T six_over_e constexpr
6 / e
static T six_over_phi constexpr
2 / phi
static T six_over_pi constexpr
6 / pi
static T sqrt_e constexpr
sqrt(e)
static T sqrt_four constexpr
sqrt(4)
static T sqrt_phi constexpr
sqrt(phi)
static T sqrt_pi constexpr
sqrt(pi)
static T sqrt_three constexpr
sqrt(3)
static T sqrt_three_pi constexpr
sqrt(3 * pi)
static T sqrt_two constexpr
sqrt(2)
static T sqrt_two_pi constexpr
sqrt(2 * pi)
static T three_over_e constexpr
3 / e
static T three_over_eight constexpr
3 / 8
static T three_over_five constexpr
3 / 5
static T three_over_four constexpr
3 / 4
static T three_over_phi constexpr
2 / phi
static T three_over_pi constexpr
3 / pi
static T three_over_seven constexpr
3 / 7
static T three_over_two constexpr
3 / 2
static T three_over_two_pi constexpr
3 / (2 * pi)
static T three_pi constexpr
3 * pi
static T three_pi_over_eight constexpr
(3 * pi) / 8
static T three_pi_over_five constexpr
(3 * pi) / 5
static T three_pi_over_four constexpr
(3 * pi) / 4
static T three_pi_over_seven constexpr
(3 * pi) / 7
static T three_pi_over_two constexpr
(3 * pi) / 2
static T two_over_e constexpr
2 / e
static T two_over_five constexpr
2 / 5
static T two_over_phi constexpr
2 / phi
static T two_over_pi constexpr
2 / pi
static T two_over_seven constexpr
2 / 7
static T two_over_three constexpr
2 / 3
static T two_over_three_pi constexpr
2 / (3 * pi)
static T two_pi constexpr
2 * pi
static T two_pi_over_five constexpr
(2 * pi) / 5
static T two_pi_over_seven constexpr
(2 * pi) / 7
static T two_pi_over_three constexpr
(2 * pi) / 3

Limits

static T highest constexpr
The highest representable 'normal' value (equivalent to std::numeric_limits::max()).
static T lowest constexpr
The lowest representable 'normal' value (equivalent to std::numeric_limits::lowest()).

Variable documentation

#include <muu/core.h>
template <>
static T muu::constants::degrees_to_radians constexpr

Conversion factor for converting degrees into radians.

#include <muu/core.h>
template <>
static T muu::constants::radians_to_degrees constexpr

Conversion factor for converting radians into degrees.

#include <muu/core.h>
template <>
static int muu::constants::decimal_digits constexpr

The number of significant decimal digits that can be exactly represented.

#include <muu/core.h>
template <>
static T muu::constants::default_epsilon constexpr

The default epsilon used by approx_equal.

#include <muu/core.h>
template <>
static T muu::constants::infinity constexpr

Positive infinity.

#include <muu/core.h>
template <>
static T muu::constants::nan constexpr

Not-A-Number (quiet)

#include <muu/core.h>
template <>
static T muu::constants::negative_infinity constexpr

Negative infinity.

#include <muu/core.h>
template <>
static T muu::constants::negative_zero constexpr

-0.0

#include <muu/core.h>
template <>
static T muu::constants::signaling_nan constexpr

Not-A-Number (signalling)

#include <muu/core.h>
template <>
static int muu::constants::significand_digits constexpr

The number of significand (mantissa) digits.

#include <muu/core.h>
template <>
static T muu::constants::eight constexpr

8

#include <muu/core.h>
template <>
static T muu::constants::five constexpr

5

#include <muu/core.h>
template <>
static T muu::constants::four constexpr

4

#include <muu/core.h>
template <>
static T muu::constants::nine constexpr

9

#include <muu/core.h>
template <>
static T muu::constants::one constexpr

1

#include <muu/core.h>
template <>
static T muu::constants::one_hundred constexpr

100

#include <muu/core.h>
template <>
static T muu::constants::seven constexpr

7

#include <muu/core.h>
template <>
static T muu::constants::six constexpr

6

#include <muu/core.h>
template <>
static T muu::constants::ten constexpr

10

#include <muu/core.h>
template <>
static T muu::constants::three constexpr

3

#include <muu/core.h>
template <>
static T muu::constants::two constexpr

2

#include <muu/core.h>
template <>
static T muu::constants::zero constexpr

0

#include <muu/core.h>
template <>
static T muu::constants::e constexpr

e

#include <muu/core.h>
template <>
static T muu::constants::e_over_eight constexpr

e / 8

#include <muu/core.h>
template <>
static T muu::constants::e_over_five constexpr

e / 5

#include <muu/core.h>
template <>
static T muu::constants::e_over_four constexpr

e / 4

#include <muu/core.h>
template <>
static T muu::constants::e_over_seven constexpr

e / 7

#include <muu/core.h>
template <>
static T muu::constants::e_over_six constexpr

e / 6

#include <muu/core.h>
template <>
static T muu::constants::e_over_three constexpr

e / 3

#include <muu/core.h>
template <>
static T muu::constants::e_over_two constexpr

e / 2

#include <muu/core.h>
template <>
static T muu::constants::eight_over_e constexpr

8 / e

#include <muu/core.h>
template <>
static T muu::constants::eight_over_phi constexpr

2 / phi

#include <muu/core.h>
template <>
static T muu::constants::eight_over_pi constexpr

8 / pi

#include <muu/core.h>
template <>
static T muu::constants::eight_over_three_pi constexpr

8 / (3 * pi)

#include <muu/core.h>
template <>
static T muu::constants::five_over_e constexpr

5 / e

#include <muu/core.h>
template <>
static T muu::constants::five_over_phi constexpr

2 / phi

#include <muu/core.h>
template <>
static T muu::constants::five_over_pi constexpr

5 / pi

#include <muu/core.h>
template <>
static T muu::constants::five_over_three_pi constexpr

5 / (3 * pi)

#include <muu/core.h>
template <>
static T muu::constants::five_over_two_pi constexpr

5 / (2 * pi)

#include <muu/core.h>
template <>
static T muu::constants::four_over_e constexpr

4 / e

#include <muu/core.h>
template <>
static T muu::constants::four_over_five constexpr

4 / 5

#include <muu/core.h>
template <>
static T muu::constants::four_over_phi constexpr

2 / phi

#include <muu/core.h>
template <>
static T muu::constants::four_over_pi constexpr

4 / pi

#include <muu/core.h>
template <>
static T muu::constants::four_over_seven constexpr

4 / 7

#include <muu/core.h>
template <>
static T muu::constants::four_over_three constexpr

4 / 3

#include <muu/core.h>
template <>
static T muu::constants::four_over_three_pi constexpr

4 / (3 * pi)

#include <muu/core.h>
template <>
static T muu::constants::one_over_e constexpr

1 / e

#include <muu/core.h>
template <>
static T muu::constants::one_over_eight constexpr

1 / 8

#include <muu/core.h>
template <>
static T muu::constants::one_over_five constexpr

1 / 5

#include <muu/core.h>
template <>
static T muu::constants::one_over_four constexpr

1 / 4

#include <muu/core.h>
template <>
static T muu::constants::one_over_one_hundred constexpr

1 / 100

#include <muu/core.h>
template <>
static T muu::constants::one_over_one_thousand constexpr

1 / 1000

#include <muu/core.h>
template <>
static T muu::constants::one_over_phi constexpr

1 / phi

#include <muu/core.h>
template <>
static T muu::constants::one_over_pi constexpr

1 / pi

#include <muu/core.h>
template <>
static T muu::constants::one_over_seven constexpr

1 / 7

#include <muu/core.h>
template <>
static T muu::constants::one_over_six constexpr

1 / 6

#include <muu/core.h>
template <>
static T muu::constants::one_over_sqrt_e constexpr

1 / sqrt(e)

#include <muu/core.h>
template <>
static T muu::constants::one_over_sqrt_phi constexpr

1 / sqrt(phi)

#include <muu/core.h>
template <>
static T muu::constants::one_over_sqrt_pi constexpr

1 / sqrt(pi)

#include <muu/core.h>
template <>
static T muu::constants::one_over_sqrt_three constexpr

1 / sqrt(3)

#include <muu/core.h>
template <>
static T muu::constants::one_over_sqrt_three_pi constexpr

1 / sqrt(3 * pi)

#include <muu/core.h>
template <>
static T muu::constants::one_over_sqrt_two constexpr

1 / sqrt(2)

#include <muu/core.h>
template <>
static T muu::constants::one_over_sqrt_two_pi constexpr

1 / sqrt(2 * pi)

#include <muu/core.h>
template <>
static T muu::constants::one_over_ten constexpr

1 / 10

#include <muu/core.h>
template <>
static T muu::constants::one_over_three constexpr

1 / 3

#include <muu/core.h>
template <>
static T muu::constants::one_over_three_pi constexpr

1 / (3 * pi)

#include <muu/core.h>
template <>
static T muu::constants::one_over_two constexpr

1 / 2

#include <muu/core.h>
template <>
static T muu::constants::one_over_two_pi constexpr

1 / (2 * pi)

#include <muu/core.h>
template <>
static T muu::constants::phi constexpr

phi

#include <muu/core.h>
template <>
static T muu::constants::phi_over_eight constexpr

phi / 8

#include <muu/core.h>
template <>
static T muu::constants::phi_over_five constexpr

phi / 5

#include <muu/core.h>
template <>
static T muu::constants::phi_over_four constexpr

phi / 4

#include <muu/core.h>
template <>
static T muu::constants::phi_over_seven constexpr

phi / 7

#include <muu/core.h>
template <>
static T muu::constants::phi_over_six constexpr

phi / 6

#include <muu/core.h>
template <>
static T muu::constants::phi_over_three constexpr

phi / 3

#include <muu/core.h>
template <>
static T muu::constants::phi_over_two constexpr

phi / 2

#include <muu/core.h>
template <>
static T muu::constants::pi constexpr

pi

#include <muu/core.h>
template <>
static T muu::constants::pi_over_eight constexpr

pi / 8

#include <muu/core.h>
template <>
static T muu::constants::pi_over_five constexpr

pi / 5

#include <muu/core.h>
template <>
static T muu::constants::pi_over_four constexpr

pi / 4

#include <muu/core.h>
template <>
static T muu::constants::pi_over_seven constexpr

pi / 7

#include <muu/core.h>
template <>
static T muu::constants::pi_over_six constexpr

pi / 6

#include <muu/core.h>
template <>
static T muu::constants::pi_over_three constexpr

pi / 3

#include <muu/core.h>
template <>
static T muu::constants::pi_over_two constexpr

pi / 2

#include <muu/core.h>
template <>
static T muu::constants::seven_over_e constexpr

7 / e

#include <muu/core.h>
template <>
static T muu::constants::seven_over_phi constexpr

2 / phi

#include <muu/core.h>
template <>
static T muu::constants::seven_over_pi constexpr

7 / pi

#include <muu/core.h>
template <>
static T muu::constants::seven_over_three_pi constexpr

7 / (3 * pi)

#include <muu/core.h>
template <>
static T muu::constants::seven_over_two_pi constexpr

7 / (2 * pi)

#include <muu/core.h>
template <>
static T muu::constants::six_over_e constexpr

6 / e

#include <muu/core.h>
template <>
static T muu::constants::six_over_phi constexpr

2 / phi

#include <muu/core.h>
template <>
static T muu::constants::six_over_pi constexpr

6 / pi

#include <muu/core.h>
template <>
static T muu::constants::sqrt_e constexpr

sqrt(e)

#include <muu/core.h>
template <>
static T muu::constants::sqrt_four constexpr

sqrt(4)

#include <muu/core.h>
template <>
static T muu::constants::sqrt_phi constexpr

sqrt(phi)

#include <muu/core.h>
template <>
static T muu::constants::sqrt_pi constexpr

sqrt(pi)

#include <muu/core.h>
template <>
static T muu::constants::sqrt_three constexpr

sqrt(3)

#include <muu/core.h>
template <>
static T muu::constants::sqrt_three_pi constexpr

sqrt(3 * pi)

#include <muu/core.h>
template <>
static T muu::constants::sqrt_two constexpr

sqrt(2)

#include <muu/core.h>
template <>
static T muu::constants::sqrt_two_pi constexpr

sqrt(2 * pi)

#include <muu/core.h>
template <>
static T muu::constants::three_over_e constexpr

3 / e

#include <muu/core.h>
template <>
static T muu::constants::three_over_eight constexpr

3 / 8

#include <muu/core.h>
template <>
static T muu::constants::three_over_five constexpr

3 / 5

#include <muu/core.h>
template <>
static T muu::constants::three_over_four constexpr

3 / 4

#include <muu/core.h>
template <>
static T muu::constants::three_over_phi constexpr

2 / phi

#include <muu/core.h>
template <>
static T muu::constants::three_over_pi constexpr

3 / pi

#include <muu/core.h>
template <>
static T muu::constants::three_over_seven constexpr

3 / 7

#include <muu/core.h>
template <>
static T muu::constants::three_over_two constexpr

3 / 2

#include <muu/core.h>
template <>
static T muu::constants::three_over_two_pi constexpr

3 / (2 * pi)

#include <muu/core.h>
template <>
static T muu::constants::three_pi constexpr

3 * pi

#include <muu/core.h>
template <>
static T muu::constants::three_pi_over_eight constexpr

(3 * pi) / 8

#include <muu/core.h>
template <>
static T muu::constants::three_pi_over_five constexpr

(3 * pi) / 5

#include <muu/core.h>
template <>
static T muu::constants::three_pi_over_four constexpr

(3 * pi) / 4

#include <muu/core.h>
template <>
static T muu::constants::three_pi_over_seven constexpr

(3 * pi) / 7

#include <muu/core.h>
template <>
static T muu::constants::three_pi_over_two constexpr

(3 * pi) / 2

#include <muu/core.h>
template <>
static T muu::constants::two_over_e constexpr

2 / e

#include <muu/core.h>
template <>
static T muu::constants::two_over_five constexpr

2 / 5

#include <muu/core.h>
template <>
static T muu::constants::two_over_phi constexpr

2 / phi

#include <muu/core.h>
template <>
static T muu::constants::two_over_pi constexpr

2 / pi

#include <muu/core.h>
template <>
static T muu::constants::two_over_seven constexpr

2 / 7

#include <muu/core.h>
template <>
static T muu::constants::two_over_three constexpr

2 / 3

#include <muu/core.h>
template <>
static T muu::constants::two_over_three_pi constexpr

2 / (3 * pi)

#include <muu/core.h>
template <>
static T muu::constants::two_pi constexpr

2 * pi

#include <muu/core.h>
template <>
static T muu::constants::two_pi_over_five constexpr

(2 * pi) / 5

#include <muu/core.h>
template <>
static T muu::constants::two_pi_over_seven constexpr

(2 * pi) / 7

#include <muu/core.h>
template <>
static T muu::constants::two_pi_over_three constexpr

(2 * pi) / 3

#include <muu/core.h>
template <>
static T muu::constants::highest constexpr

The highest representable 'normal' value (equivalent to std::numeric_limits::max()).

#include <muu/core.h>
template <>
static T muu::constants::lowest constexpr

The lowest representable 'normal' value (equivalent to std::numeric_limits::lowest()).