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