/** * Inverse error function. * * Computes the inverse of the error function. * * The inverse error function satisfies `y = erf(x)`, for `-1 ≤ y ≤ 1` and `-∞ ≤ x ≤ ∞`. * * @param y A real value in the range [-1, 1] * @returns The value of the inverse error function * @throws If the input is out of range * * @example Compute the inverse error function for a positive value * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(erfinv(0.1), 0.08885596505119556); * * ``` * * @example Compute the inverse error function for a negative value * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(erfinv(-0.5), -0.47693623612190483); * * ``` * * @example Compute the inverse error function for 0 (should return 0) * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(erfinv(0), 0); * * ``` * * @example Compute the inverse error function for 1 (should return positive infinity) * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(erfinv(1), Infinity); * * ``` * * @example Compute the inverse error function for -1 (should return negative infinity) * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(erfinv(-1), -Infinity); * * ``` */ export default function erfinv(y: number): number; //# sourceMappingURL=erfinv.d.ts.map