ORIGINAL
|
Mathematical utilities, constants, and range generators. More...
Go to the source code of this file.
Namespaces | |
namespace | original |
Main namespace for the project Original. | |
Functions | |
template<typename TYPE > | |
TYPE | original::abs (TYPE a) |
Returns the absolute value of a given number. | |
template<typename TYPE > | |
TYPE | original::max (TYPE a, TYPE b) |
Returns the larger of two given values. | |
template<typename TYPE > | |
TYPE | original::min (TYPE a, TYPE b) |
Returns the smaller of two given values. | |
floating | original::pow (floating base, integer exp) |
Returns the result of raising a base to an exponent. | |
template<std::integral INTEGER = int> | |
coroutine::generator< INTEGER > | original::rangesOf (INTEGER start, INTEGER end, INTEGER steps=1) |
Generates a sequence of integers from start to end (exclusive) with a given steps . | |
Variables | |
constexpr l_floating | original::E = 2.7182818284590452353602874713526624977572470937000 |
The mathematical constant E (Euler's number). | |
constexpr l_floating | original::PI = 3.1415926535897932384626433832795028841971693993751 |
The mathematical constant PI (π). | |
Mathematical utilities, constants, and range generators.
This header file defines commonly used mathematical constants and utility functions that can be used throughout the library. These functions provide basic mathematical operations such as absolute value, maximum, minimum, power calculations, and integer range generation using coroutines.
The module provides: