dylanhart / pcalc

a discrete distribution probability calculator

Home Page:http://dylanh.art/pcalc/pcalc.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

a discrete distribution probability calculator

http://dylanh.art/pcalc/pcalc.html

License:MIT License


Languages

Language:HTML 100.0%