27 static constexpr
double e = 2.7182818284590452354;
30 static constexpr
double epsilon = 4.94066e-324;
33 static constexpr
double infinity = std::numeric_limits<double>::infinity();
36 static constexpr
double max_value = std::numeric_limits<double>::max();
39 static constexpr
double min_value = std::numeric_limits<double>::lowest();
42 static constexpr
double NaN = std::numeric_limits<double>::quiet_NaN();
48 static constexpr
double pi = 3.14159265358979323846;
54 static constexpr
double tau = 2.7182818284590451;
67 static double abs(
double value);
71 static float abs(
float value);
101 static double acos(
double value);
106 static double asin(
double value);
111 static double atan(
double value);
129 static double atan2(
double y,
double x);
145 static double ceiling(
double value);
164 static double clamp(
double value,
double min,
double max) noexcept;
200 static float clamp(
float value,
float min,
float max) noexcept;
229 static double cos(
double value);
234 static double cosh(
double value);
257 static double exp(
double value);
266 static double floor(
double value);
294 static bool is_NaN(
double value) noexcept;
308 static double log(
double value);
331 static double log(
double a,
double new_base);
345 static double log10(
double value);
361 static double max(
double a,
double b) noexcept;
391 static float max(
float a,
float b) noexcept;
427 static double min(
double a,
double b) noexcept;
457 static float min(
float a,
float b) noexcept;
503 static double pow(
double x,
double y);
522 static double round(
double value);
527 static double round(
double value,
int32 decimals);
616 static double sin(
double value);
621 static double sinh(
double value);
633 static double sqrt(
double value);
638 static double tan(
double value);
643 static double tanh(
double value);
664 static double truncate(
double value);
static constexpr double NaN
Represents not a number (NaN). This field is constant.
Definition: math.h:42
Contains xtd::static_object class.
static decimal abs(decimal value)
Returns the absolute value of a decimal number.
Contains xtd fundamental types.
static constexpr double epsilon
Represents the smallest positive Double value greater than zero. This field is constant.
Definition: math.h:30
int_least8_t sbyte
Represents a 8-bit signed integer.
Definition: types.h:112
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition: static.h:38
static double sin(double value)
Returns the sine of the specified angle.
long double decimal
Represents a decimal-precision floating-point number.
Definition: types.h:58
static bool is_infinity(double value) noexcept
Returns a value indicating whether the specified number evaluates to negative or positive infinity...
Provides constants and static methods for trigonometric, logarithmic, and other common mathematical f...
Definition: math.h:20
static decimal round(decimal value)
Rounds a double-precision floating-point value to the nearest integral value.
static double pow(double x, double y)
Returns a specified number raised to the specified power.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
static double atan2(double y, double x)
Returns the angle whose tangent is the specified number.
uint_least16_t uint16
Represents a 16-bit unsigned integer.
Definition: types.h:144
static int64 big_mul(int32 a, int32 b)
Produces the full product of two 32-bit numbers.
static int32 div_rem(int32 dividend, int32 divisor, int32 &remainder)
Calculates the quotient of two 32-bit signed integers and also returns the remainder in an output par...
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 constexpr double tau
Represents the number of radians in one turn, specified by the constant, τ.
Definition: math.h:54
static double cosh(double value)
Returns the hyperbolic cosine of the specified angle.
static double radians_to_degrees(double radians) noexcept
Convert radians to degrees.
static double sinh(double value)
Returns the hyperbolic sine of the specified angle.
static double tanh(double value)
Returns the hyperbolic 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 constexpr double pi
Represents the ratio of the circumference of a circle to its diameter, specified by the constant...
Definition: math.h:48
static constexpr double max_value
Represents the largest possible value of double. This field is constant.
Definition: math.h:36
static double degrees_to_radians(double degrees) noexcept
Convert degrees to radians.
static decimal truncate(decimal value)
Calculates the integral part of a specified double-precision floating-point number.
static bool is_NaN(double value) noexcept
Returns a value indicating whether the specified number evaluates to not a number.
static double tan(double value)
Returns the tangent of the specified angle.
__slong__ slong
Represents a 32-bit or 64-bit signed integer.
Definition: types.h:128
static double log10(double value)
Returns the base 10 logarithm of a specified number.
static decimal ceiling(decimal value)
Returns the smallest integer greater than or equal to the specified double-precision floating-point n...
int_least16_t int16
Represents a 16-bit signed integer.
Definition: types.h:66
static decimal floor(decimal value)
Returns the largest integer less than or equal to the specified decimal number.
static constexpr double infinity
Represents infinity. This field is constant.
Definition: math.h:33
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:74
static double asin(double value)
Returns the angle whose sine is the specified number.
static constexpr double min_value
Represents the smallest possible value of double. This field is constant.
Definition: math.h:39
static bool is_negative_infinity(double value) noexcept
Returns a value indicating whether the specified number evaluates to negative infinity.
static double log(double value)
Returns the natural (base e) logarithm of a specified number.
__ulong__ ulong
Represents a 32-bit or 64-bit unsigned integer.
Definition: types.h:176
static double exp(double value)
Returns e raised to the specified power.
static constexpr double positive_infinity
Represents positive infinity. This field is constant.
Definition: math.h:51
static int32 sign(decimal value)
Returns a value indicating the sign of a double-precision floating-point number.
uint_least64_t uint64
Represents a 64-bit unsigned integer.
Definition: types.h:160
int_least64_t int64
Represents a 64-bit signed integer.
Definition: types.h:82
uint_least8_t byte
Represents a 8-bit unsigned integer.
Definition: types.h:26
static double sqrt(double value)
Returns the square root of a specified number.
uint_least32_t uint32
Represents a 32-bit unsigned integer.
Definition: types.h:152
static constexpr double e
Represents the natural logarithmic base, specified by the constant, e. This field is constant...
Definition: math.h:27
static xtd::byte clamp(xtd::byte value, xtd::byte min, xtd::byte max) noexcept
Returns value clamped to the inclusive range of min and max.
static constexpr double negative_infinity
Represents negative infinity. This field is constant.
Definition: math.h:45
static double cos(double value)
Returns the cosine of the specified angle.
static bool is_positive_infinity(double value) noexcept
Returns a value indicating whether the specified number evaluates to positive infinity.
static xtd::byte min(xtd::byte a, xtd::byte b) noexcept
Returns the smaller of two 8-bit unsigned integers.
static xtd::byte max(xtd::byte a, xtd::byte b) noexcept
Returns the larger of two 8-bit unsigned integers.