/** * Python math module for TypeScript * * Provides mathematical functions and constants matching Python's math module. * Includes trigonometric, logarithmic, and special functions like factorial and gcd. * * @see {@link https://docs.python.org/3/library/math.html | Python math documentation} * @module */ /** Mathematical constant π = 3.141592... */ declare const pi: number; /** Mathematical constant e = 2.718281... */ declare const e: number; /** Mathematical constant τ = 2π = 6.283185... */ declare const tau: number; /** Positive infinity */ declare const inf: number; /** Not a Number (NaN) */ declare const nan: number; /** Return the ceiling of x, the smallest integer greater than or equal to x */ declare function ceil(x: number): number; /** Return the floor of x, the largest integer less than or equal to x */ declare function floor(x: number): number; /** Return the truncated integer part of x (rounds toward zero) */ declare function trunc(x: number): number; /** Return the absolute value of x */ declare function fabs(x: number): number; /** Return x with the sign of y */ declare function copysign(x: number, y: number): number; /** Return the fractional and integer parts of x */ declare function modf(x: number): [number, number]; /** Return the greatest common divisor of a and b */ declare function gcd(a: number, b: number): number; /** Return the least common multiple of a and b */ declare function lcm(a: number, b: number): number; /** Return True if x is neither infinity nor NaN */ declare function isfinite(x: number): boolean; /** Return True if x is positive or negative infinity */ declare function isinf(x: number): boolean; /** Return True if x is NaN */ declare function isnan(x: number): boolean; /** Return True if the values a and b are close to each other */ declare function isclose(a: number, b: number, rel_tol?: number, abs_tol?: number): boolean; /** Return e raised to the power x */ declare function exp(x: number): number; /** Return e raised to the power x, minus 1 (more accurate for small x) */ declare function expm1(x: number): number; /** Return the natural logarithm of x */ declare function log(x: number, base?: number): number; /** Return the natural logarithm of 1+x (more accurate for small x) */ declare function log1p(x: number): number; /** Return the base-2 logarithm of x */ declare function log2(x: number): number; /** Return the base-10 logarithm of x */ declare function log10(x: number): number; /** Return x raised to the power y */ declare function pow(x: number, y: number): number; /** Return the square root of x */ declare function sqrt(x: number): number; /** Return the cube root of x */ declare function cbrt(x: number): number; /** Return the Euclidean norm, sqrt(sum(x**2 for x in args)) */ declare function hypot(...args: number[]): number; /** Return the sine of x (x in radians) */ declare function sin(x: number): number; /** Return the cosine of x (x in radians) */ declare function cos(x: number): number; /** Return the tangent of x (x in radians) */ declare function tan(x: number): number; /** Return the arc sine of x, in radians */ declare function asin(x: number): number; /** Return the arc cosine of x, in radians */ declare function acos(x: number): number; /** Return the arc tangent of x, in radians */ declare function atan(x: number): number; /** Return atan(y / x), in radians. The result is between -π and π */ declare function atan2(y: number, x: number): number; /** Return the hyperbolic sine of x */ declare function sinh(x: number): number; /** Return the hyperbolic cosine of x */ declare function cosh(x: number): number; /** Return the hyperbolic tangent of x */ declare function tanh(x: number): number; /** Return the inverse hyperbolic sine of x */ declare function asinh(x: number): number; /** Return the inverse hyperbolic cosine of x */ declare function acosh(x: number): number; /** Return the inverse hyperbolic tangent of x */ declare function atanh(x: number): number; /** Convert angle x from radians to degrees */ declare function degrees(x: number): number; /** Convert angle x from degrees to radians */ declare function radians(x: number): number; /** Return the factorial of n as an integer */ declare function factorial(n: number): number; /** Return the sum of products of values from iterables (dot product) */ declare function fsum(iterable: Iterable): number; /** Return the product of all elements in the iterable */ declare function prod(iterable: Iterable, start?: number): number; declare const mathModule_acos: typeof acos; declare const mathModule_acosh: typeof acosh; declare const mathModule_asin: typeof asin; declare const mathModule_asinh: typeof asinh; declare const mathModule_atan: typeof atan; declare const mathModule_atan2: typeof atan2; declare const mathModule_atanh: typeof atanh; declare const mathModule_cbrt: typeof cbrt; declare const mathModule_ceil: typeof ceil; declare const mathModule_copysign: typeof copysign; declare const mathModule_cos: typeof cos; declare const mathModule_cosh: typeof cosh; declare const mathModule_degrees: typeof degrees; declare const mathModule_e: typeof e; declare const mathModule_exp: typeof exp; declare const mathModule_expm1: typeof expm1; declare const mathModule_fabs: typeof fabs; declare const mathModule_factorial: typeof factorial; declare const mathModule_floor: typeof floor; declare const mathModule_fsum: typeof fsum; declare const mathModule_gcd: typeof gcd; declare const mathModule_hypot: typeof hypot; declare const mathModule_inf: typeof inf; declare const mathModule_isclose: typeof isclose; declare const mathModule_isfinite: typeof isfinite; declare const mathModule_isinf: typeof isinf; declare const mathModule_isnan: typeof isnan; declare const mathModule_lcm: typeof lcm; declare const mathModule_log: typeof log; declare const mathModule_log10: typeof log10; declare const mathModule_log1p: typeof log1p; declare const mathModule_log2: typeof log2; declare const mathModule_modf: typeof modf; declare const mathModule_nan: typeof nan; declare const mathModule_pi: typeof pi; declare const mathModule_pow: typeof pow; declare const mathModule_prod: typeof prod; declare const mathModule_radians: typeof radians; declare const mathModule_sin: typeof sin; declare const mathModule_sinh: typeof sinh; declare const mathModule_sqrt: typeof sqrt; declare const mathModule_tan: typeof tan; declare const mathModule_tanh: typeof tanh; declare const mathModule_tau: typeof tau; declare const mathModule_trunc: typeof trunc; declare namespace mathModule { export { mathModule_acos as acos, mathModule_acosh as acosh, mathModule_asin as asin, mathModule_asinh as asinh, mathModule_atan as atan, mathModule_atan2 as atan2, mathModule_atanh as atanh, mathModule_cbrt as cbrt, mathModule_ceil as ceil, mathModule_copysign as copysign, mathModule_cos as cos, mathModule_cosh as cosh, mathModule_degrees as degrees, mathModule_e as e, mathModule_exp as exp, mathModule_expm1 as expm1, mathModule_fabs as fabs, mathModule_factorial as factorial, mathModule_floor as floor, mathModule_fsum as fsum, mathModule_gcd as gcd, mathModule_hypot as hypot, mathModule_inf as inf, mathModule_isclose as isclose, mathModule_isfinite as isfinite, mathModule_isinf as isinf, mathModule_isnan as isnan, mathModule_lcm as lcm, mathModule_log as log, mathModule_log10 as log10, mathModule_log1p as log1p, mathModule_log2 as log2, mathModule_modf as modf, mathModule_nan as nan, mathModule_pi as pi, mathModule_pow as pow, mathModule_prod as prod, mathModule_radians as radians, mathModule_sin as sin, mathModule_sinh as sinh, mathModule_sqrt as sqrt, mathModule_tan as tan, mathModule_tanh as tanh, mathModule_tau as tau, mathModule_trunc as trunc }; } export { isinf as A, isnan as B, lcm as C, log as D, log10 as E, log1p as F, log2 as G, modf as H, nan as I, pi as J, pow as K, prod as L, radians as M, sin as N, sinh as O, sqrt as P, tan as Q, tanh as R, tau as S, trunc as T, acos as a, acosh as b, asin as c, asinh as d, atan as e, atan2 as f, atanh as g, cbrt as h, ceil as i, copysign as j, cos as k, cosh as l, mathModule as m, degrees as n, e as o, exp as p, expm1 as q, fabs as r, factorial as s, floor as t, fsum as u, gcd as v, hypot as w, inf as x, isclose as y, isfinite as z };