Maxima Function
pdf_bernoulli (x,p)
Returns the value at x of the probability function of a Bernoulli(p) random variable, with 0<p<1.
The Bernoulli(p) random variable is equivalent to the Binomial(1,p), therefore when Maxima has not enough information to get the result, a noun form based on the binomial probability function is returned.
(%i1) load (distrib)$ (%i2) pdf_bernoulli(1,p); (%o2) pdf_binomial(1, 1, p) (%i3) assume(0<p,p<1)$ pdf_bernoulli(1,p); (%o4) p