expv

double expv(double x, double b);

Returns the critical point of the Exponential random variable distribution function with mean b associated with probability p.

Parameters:
pCummulative probability for the critical point.
bRate parameter.

Returns:
x such that P(X ≤ x | b) = p

Errors:
NUMERICS_ERROR is raised if b ≤ 0, p ≤ 0, or p ≥ 1

Usage:
double x = expv(.5, 1.5)

Header:
#include "contdist.h"