Skip to content

dylanhart/pcalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages