24 static constexpr
double e = 2.7182818284590452354;
27 static constexpr
double epsilon = 4.94066e-324;
30 static constexpr
double infinity = std::numeric_limits<double>::infinity();
33 static constexpr
double max_value = std::numeric_limits<double>::max();
36 static constexpr
double min_value = std::numeric_limits<double>::lowest();
39 static constexpr
double NaN = std::numeric_limits<double>::quiet_NaN();
45 static constexpr
double pi = 3.14159265358979323846;
51 static constexpr
double tau = 2.7182818284590451;
56 static decimal_t
abs(decimal_t value);
61 static double abs(
double value);
66 static float abs(
float value);
72 static int16_t
abs(int16_t value);
78 static int32_t
abs(int32_t value);
84 static int64_t
abs(int64_t value);
90 static sbyte_t
abs(sbyte_t value);
96 static llong_t
abs(llong_t value);
101 static double acos(
double value);
106 static double asin(
double value);
111 static double atan(
double value);
127 static double atan2(
double y,
double x);
148 static double cos(
double value);
153 static double cosh(
double value);
165 static int32_t
div_rem(int32_t dividend, int32_t divisor, int32_t& remainder);
172 static int64_t
div_rem(int64_t dividend, int64_t divisor, int64_t& remainder);
177 static double exp(
double value);
182 static decimal_t
floor(decimal_t value);
228 static double log(
double value);
250 static double log(
double a,
double new_base);
269 static byte_t
max(byte_t a, byte_t b);
275 static decimal_t
max(decimal_t a, decimal_t b);
281 static double max(
double a,
double b);
287 static int16_t
max(int16_t a, int16_t b);
293 static int32_t
max(int32_t a, int32_t b);
299 static int64_t
max(int64_t a, int64_t b);
305 static llong_t
max(llong_t a, llong_t b);
311 static sbyte_t
max(sbyte_t a, sbyte_t b);
317 static float max(
float a,
float b);
323 static uint16_t
max(uint16_t a, uint16_t b);
329 static uint32_t
max(uint32_t a, uint32_t b);
335 static uint64_t
max(uint64_t a, uint64_t b);
341 static ullong_t
max(ullong_t a, ullong_t b);
347 static byte_t
min(byte_t a, byte_t b);
353 static decimal_t
min(decimal_t a, decimal_t b);
359 static double min(
double a,
double b);
365 static int16_t
min(int16_t a, int16_t b);
371 static int32_t
min(int32_t a, int32_t b);
377 static int64_t
min(int64_t a, int64_t b);
383 static llong_t
min(llong_t a, llong_t b);
389 static sbyte_t
min(sbyte_t a, sbyte_t b);
395 static float min(
float a,
float b);
401 static uint16_t
min(uint16_t a, uint16_t b);
419 static ullong_t
min(ullong_t a, ullong_t b);
444 static double pow(
double x,
double y);
454 static decimal_t
round(decimal_t value);
460 static decimal_t
round(decimal_t value, int32_t decimals);
471 static double round(
double value, int32_t decimals);
482 static int32_t
sign(decimal_t value);
493 static int32_t
sign(
double value);
503 static int32_t
sign(int16_t value);
513 static int32_t
sign(int32_t value);
523 static int32_t
sign(int64_t value);
533 static int32_t
sign(llong_t value);
543 static int32_t
sign(sbyte_t value);
554 static int32_t
sign(
float value);
559 static double sin(
double value);
564 static double sinh(
double value);
575 static double sqrt(
double value);
580 static double tan(
double value);
585 static double tanh(
double value);
Provides constants and static methods for trigonometric, logarithmic, and other common mathematical f...
Definition: math.h:20
static llong_t max(llong_t a, llong_t b)
Returns the larger of two 64-bit signed integers.
static constexpr double min_value
Represents the smallest possible value of double. This field is constant.
Definition: math.h:36
static double round(double value, int32_t decimals)
Rounds a decimal value to a specified number of fractional digits.
static double abs(double value)
Returns the absolute value of a double-precision floating-point number.
static uint64_t max(uint64_t a, uint64_t b)
Returns the larger of two 64-bit unsigned integers.
static uint32_t min(uint32 a, uint32 b)
Returns the smaller of two 32-bit unsigned integers.
static double sqrt(double value)
Returns the square root of a specified number.
static constexpr double infinity
Represents infinity. This field is constant.
Definition: math.h:30
static decimal_t floor(decimal_t value)
Returns the largest integer less than or equal to the specified decimal number.
static int64_t min(int64_t a, int64_t b)
Returns the smaller of two 64-bit signed integers.
static double floor(double value)
Returns the largest integer less than or equal to the specified decimal number.
static int32_t sign(int64_t value)
Returns a value indicating the sign of a 64-bit signed integer.
static double round(double value)
Rounds a double-precision floating-point value to the nearest integral value.
static uint64 min(uint64_t a, uint64_t b)
Returns the smaller of two 64-bit unsigned integers.
static constexpr double positive_infinity
Represents positive infinity. This field is constant.
Definition: math.h:48
static int16_t abs(int16_t value)
Returns the absolute value of a 16-bit signed integer.
static int32_t div_rem(int32_t dividend, int32_t divisor, int32_t &remainder)
Calculates the quotient of two 32-bit signed integers and also returns the remainder in an output par...
static byte_t min(byte_t a, byte_t b)
Returns the smaller of two 8-bit unsigned integers.
static double atan2(double y, double x)
Returns the angle whose tangent is the specified number.
static int32_t min(int32_t a, int32_t b)
Returns the smaller of two 32-bit signed integers.
static int32_t sign(llong_t value)
Returns a value indicating the sign of a 64-bit signed integer.
static int32_t sign(sbyte_t value)
Returns a value indicating the sign of an 8-bit signed integer.
static double radians_to_degrees(double radians)
Convert radians to degrees.
static constexpr double tau
Represents the number of radians in one turn, specified by the constant, τ.
Definition: math.h:51
static int32_t sign(float value)
Returns a value indicating the sign of a single-precision floating-point number.
static constexpr double negative_infinity
Represents negative infinity. This field is constant.
Definition: math.h:42
static byte_t max(byte_t a, byte_t b)
Returns the larger of two 8-bit unsigned integers.
static int32_t max(int32_t a, int32_t b)
Returns the larger of two 32-bit signed integers.
static double exp(double value)
Returns e raised to the specified power.
static uint16_t min(uint16_t a, uint16_t b)
Returns the smaller of two 16-bit unsigned integers.
static bool is_infinity(double value)
Returns a value indicating whether the specified number evaluates to negative or positive infinity.
static bool is_positive_infinity(double value)
Returns a value indicating whether the specified number evaluates to positive infinity.
static int64_t div_rem(int64_t dividend, int64_t divisor, int64_t &remainder)
Calculates the quotient of two 64-bit signed integers and also returns the remainder in an output par...
static double log(double a, double new_base)
Returns the logarithm of a specified number in a specified base.
static constexpr double e
Represents the natural logarithmic base, specified by the constant, e. This field is constant.
Definition: math.h:24
static double max(double a, double b)
Returns the larger of two double single.
static uint32_t max(uint32_t a, uint32_t b)
Returns the larger of two 32-bit unsigned integers.
static int16_t max(int16_t a, int16_t b)
Returns the larger of two 16-bit signed integers.
static double tan(double value)
Returns the tangent of the specified angle.
static double ieee_remainder(double dividend, double divisor)
Returns the remainder resulting from the division of a specified number by another specified number.
static float min(float a, float b)
Returns the smaller of two single single.
static decimal_t truncate(decimal_t value)
Calculates the integral part of a specified double-precision floating-point number.
static float max(float a, float b)
Returns the larger of two single single.
static float abs(float value)
Returns the absolute value of a single-precision floating-point number.
static sbyte_t abs(sbyte_t value)
Returns the absolute value of a 8-bit signed integer.
static double ceiling(double value)
Returns the smallest integer greater than or equal to the specified double-precision floating-point n...
static constexpr double epsilon
Represents the smallest positive Double value greater than zero. This field is constant.
Definition: math.h:27
static int32_t sign(int32_t value)
Returns a value indicating the sign of a 32-bit signed integer.
static decimal_t abs(decimal_t value)
Returns the absolute value of a decimal number.
static int64_t big_mul(int32_t a, int32_t b)
Produces the full product of two 32-bit numbers.
static double sin(double value)
Returns the sine of the specified angle.
static double cos(double value)
Returns the cosine of the specified angle.
static double pow(double x, double y)
Returns a specified number raised to the specified power.
static constexpr double NaN
Represents not a number (NaN). This field is constant.
Definition: math.h:39
static decimal_t max(decimal_t a, decimal_t b)
Returns the larger of two double single.
static int16_t min(int16_t a, int16_t b)
Returns the smaller of two 16-bit signed integers.
static double min(double a, double b)
Returns the smaller of two double single.
static int32_t sign(decimal_t value)
Returns a value indicating the sign of a double-precision floating-point number.
static double sinh(double value)
Returns the hyperbolic sine of the specified angle.
static int32_t sign(int16_t value)
Returns a value indicating the sign of a 16-bit signed integer.
static bool is_NaN(double value)
Returns a value indicating whether the specified number evaluates to not a number.
static ullong_t min(ullong_t a, ullong_t b)
Returns the smaller of two 64-bit unsigned integers.
static double truncate(double value)
Calculates the integral part of a specified double-precision floating-point number.
static uint16_t max(uint16_t a, uint16_t b)
Returns the larger of two 16-bit unsigned integers.
static bool is_negative_infinity(double value)
Returns a value indicating whether the specified number evaluates to negative infinity.
static decimal_t min(decimal_t a, decimal_t b)
Returns the smaller of two double single.
static constexpr double max_value
Represents the largest possible value of double. This field is constant.
Definition: math.h:33
static decimal_t round(decimal_t value)
Rounds a double-precision floating-point value to the nearest integral value.
static decimal ceiling(decimal value)
Returns the smallest integer greater than or equal to the specified double-precision floating-point n...
static llong_t abs(llong_t value)
Returns the absolute value of a 64-bit signed integer.
static ullong_t max(ullong_t a, ullong_t b)
Returns the larger of two 64-bit unsigned integers.
static sbyte_t min(sbyte_t a, sbyte_t b)
Returns the smaller of two 8-bit signed integers.
static int64_t abs(int64_t value)
Returns the absolute value of a 64-bit signed integer.
static double log10(double value)
Returns the base 10 logarithm of a specified number.
static double cosh(double value)
Returns the hyperbolic cosine of the specified angle.
static constexpr double pi
Represents the ratio of the circumference of a circle to its diameter, specified by the constant,...
Definition: math.h:45
static llong_t min(llong_t a, llong_t b)
Returns the smaller of two 64-bit signed integers.
static double log(double value)
Returns the natural (base e) logarithm of a specified number.
static decimal_t round(decimal_t value, int32_t decimals)
Rounds a decimal value to a specified number of fractional digits.
static int32_t abs(int32_t value)
Returns the absolute value of a 32-bit signed integer.
static double tanh(double value)
Returns the hyperbolic tangent of the specified angle.
static double atan(double value)
Returns the angle whose tangent is the specified number.
static double acos(double value)
Returns the angle whose cosine is the specified number.
static double asin(double value)
Returns the angle whose sine is the specified number.
static int64_t max(int64_t a, int64_t b)
Returns the larger of two 64-bit signed integers.
static sbyte_t max(sbyte_t a, sbyte_t b)
Returns the larger of two 8-bit signed integers.
static int32_t sign(double value)
Returns a value indicating the sign of a double-precision floating-point number.
static double degrees_to_radians(double degrees)
Convert degrees to radians.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition: static.h:38
decimal_t decimal
Represents a decimal-precision floating-point number.
Definition: types.h:113
uint32_t uint32
Represents a 32-bit unsigned integer.
Definition: types.h:211
uint64_t uint64
Represents a 64-bit unsigned integer.
Definition: types.h:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::static_object class.
Contains xtd fundamental types.