This is a Next.js project bootstrapped with create-next-app
.
Standard normal distribution calculator made with P5.js and Next.js. Used for calculating cumulative values of X on the standard normal graph with a mean of 0 and a standard deviation of 1.
The area calculated is using the definite integral of the normal distribution function which is equal to the Gauss error function taking in the value of x/sqrt(2)+1 and that all over 2.
The Gauss error function is non-elementary but there are approximations available to use, this project uses one from Abramowitz and Stegun.
The math related can be found in the index of 'pages' of this project.
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js
. The page auto-updates as you edit the file.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!