Mathematical Constants
Get familiar with the basic mathematical constants provided by 'std::numbers'.
We'll cover the following...
We'll cover the following...
First of all, the constants require the header <numbers> and the namespace std::numbers. The following table gives you an overview.
| Mathematical constant | Description | 
|---|---|
std::numbers::e | 
|
std::numbers::log2e | 
2 | 
std::numbers::log10e | 
10 |