statistics.normalQuantile
This function gives the quantile of the standard normal law: the `x` with `normalCdf(x) = p`. It uses PPND16 of Wichura (algorithm AS 241). Below 0.075, one step of Halley with `normalCdf` follows. Above 0.5, `p` uses the lower tail at `1 - p`. This subtraction is exact. On 2026-11-09 the error was at most 1.2 ulps in the tails and 5.5 ulps from 0.075 to 0.925, against `mpmath`.
CLI- Package
- @procedures/statistics · README
- Path
["statistics","normalQuantile"]- CLI
mark statistics normalQuantile --p <number>- As data
{"$proc":["statistics","normalQuantile"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/statistics/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["statistics","normalQuantile"], { p: 1 });
console.log(JSON.stringify(result));From the command line
$ mark statistics normalQuantile --p <number>
As data, in a program
{ "$proc": ["statistics", "normalQuantile"], "input": { "p": 1 } }Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
p | number | yes | The share of the law below the result, from 0 to 1. A `p` of 0 gives `-Infinity` and 1 gives `Infinity`. |
Output
The schema does not list fields (number).
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"p": {
"type": "number",
"description": "The share of the law below the result, from 0 to 1. A `p` of 0 gives `-Infinity` and 1 gives `Infinity`."
}
},
"required": [
"p"
],
"additionalProperties": false
},
"output": {
"type": "number"
}
}