ORIGINAL
Loading...
Searching...
No Matches
maths.h File Reference

Mathematical utilities and constants. More...

#include "error.h"
Include dependency graph for maths.h:
This graph shows which files directly or indirectly include this file:

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.
 
double original::pow (double base, int exp)
 Returns the result of raising a base to an exponent.
 

Variables

constexpr long double original::E = 2.7182818284590452353602874713526624977572470937000L
 The mathematical constant E (Euler's number).
 
constexpr long double original::PI = 3.1415926535897932384626433832795028841971693993751L
 The mathematical constant PI (π).
 

Detailed Description

Mathematical utilities and constants.

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, and power calculations.