/** * Elementary functions. Hypotenuse and exp/log use sections 20.10.1 and * 20.10.2; power and trigonometry use sections 20.10.3 and 20.10.4. * Square root uses its correctly rounded host operation. */ import type { Value } from '../values/index.js'; /** * `sqrt(x)`: square root, absent below zero. * * Correctly rounded on every conforming platform, so this one is bit-identical * everywhere without a portable implementation of its own. */ export declare function sqrt(x: Value): Value; /** `pow(x, y)`: absent where the result is not a finite real. */ export declare function pow(x: Value, y: Value): Value; /** `exp(x)`: e to the power x. */ export declare function exp(x: Value): Value; /** `log(x)`: natural logarithm, absent at or below zero. */ export declare function log(x: Value): Value; /** `log10(x)`: base ten logarithm, absent at or below zero. */ export declare function log10(x: Value): Value; /** `math.log2(x)`: base two logarithm, absent at or below zero. */ export declare function log2(x: Value): Value; /** The circle constant. */ export declare const PI: number; /** The base of the natural logarithm. */ export declare const E: number; /** `math.hypot(x, y)`: `sqrt(x * x + y * y)` without intermediate overflow. */ export declare function hypot(x: Value, y: Value): Value; /** `math.toDegrees(x)`: radians to degrees. */ export declare function toDegrees(x: Value): Value; /** `math.toRadians(x)`: degrees to radians. */ export declare function toRadians(x: Value): Value; /** `math.sin(x)`: sine of an angle in radians. */ export declare function sin(x: Value): Value; /** `math.cos(x)`: cosine. */ export declare function cos(x: Value): Value; /** `math.tan(x)`: tangent. */ export declare function tan(x: Value): Value; /** `math.asin(x)`: inverse sine, absent outside -1 to 1. */ export declare function asin(x: Value): Value; /** `math.acos(x)`: inverse cosine, absent outside -1 to 1. */ export declare function acos(x: Value): Value; /** `math.atan(x)`: inverse tangent. */ export declare function atan(x: Value): Value; /** `math.atan2(y, x)`: angle of a vector, correct in all four quadrants. */ export declare function atan2(y: Value, x: Value): Value; //# sourceMappingURL=elementary.d.ts.map