geomp

double geomp(int x, double p);

Returns the value of the Geometric random variable distribution function with probability of success p at the value x.

Parameters:
xCritical point.
pProbability of success.

Returns:
P(X ≤ x | p)

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

Usage:
double p = geomp(5, 0.75)

Header:
#include "discdist.h"