erfcinv(y: number): number
Inverse complementary error function.
Computes the inverse of the complementary error function.
It satisfies y = erfc(x) for 0 ≤ y ≤ 2 with -∞ ≤ x ≤ ∞.
Compute the inverse complementary error function for a value less than 1
Compute the inverse complementary error function for a value less than 1
import { assertEquals } from "jsr:@std/assert"; assertEquals(erfcinv(1.5), -0.476936236121904);
Compute the inverse complementary error function for a value greater than 1
Compute the inverse complementary error function for a value greater than 1
import { assertEquals } from "jsr:@std/assert"; assertEquals(erfcinv(0.5), 0.476936236121904);
Compute the inverse complementary error function for 1
Compute the inverse complementary error function for 1
import { assertEquals } from "jsr:@std/assert"; assertEquals(erfcinv(1), 0);