Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 420 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 420 Bytes

PCalc

PCalc is a discrete distribution probability calculator.

Example

Input
n = 10
X ~ Binomial(n, .5)

? P(X > 3)
? E(X)
Output
Query Result
.828125
5

Building

To convert the parser to js, run the following:

$ npx pegjs -e parser --format globals parser.pegjs