1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/// Speed of light in vacuum, in meters per second.
///
/// # Examples
///
/// ```
/// use rfconversions::constants::SPEED_OF_LIGHT;
/// assert_eq!(SPEED_OF_LIGHT, 299_792_458.0);
/// ```
pub const SPEED_OF_LIGHT: f64 = 299792458.0;
/// Boltzmann's constant in joules per kelvin (J/K).
///
/// Used in thermal noise calculations: P = kTB.
///
/// # Examples
///
/// ```
/// use rfconversions::constants::BOLTZMANN;
/// assert!((BOLTZMANN - 1.380649e-23).abs() < 1e-29);
/// ```
pub const BOLTZMANN: f64 = 1.380649e-23;
/// Standard reference temperature in kelvin (290 K).
///
/// IEEE standard reference temperature used in noise figure definitions.
///
/// # Examples
///
/// ```
/// use rfconversions::constants::T0;
/// assert_eq!(T0, 290.0);
/// ```
pub const T0: f64 = 290.0;