Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erf (Gauss error function) #20

Merged
merged 1 commit into from
Nov 17, 2019
Merged

erf (Gauss error function) #20

merged 1 commit into from
Nov 17, 2019

Conversation

waltertross
Copy link

The erf (error function) completes the set of useful mathematical functions that cannot be derived from other words. I like the idea to leave out all the functions that can be described in terms of the available words, but the erf is not one of these. The erf is an important function in statistics, where it is linearly related to the normal (i.e., Gaussian) cumulative distribution function. See also the "68–95–99.7 rule".
Sorry for the last minute addition. I hope you didn't build the release yet.

@waltertross
Copy link
Author

To illustrate the "68–95–99.7 rule" (https://en.wikipedia.org/wiki/68%E2%80%9395%E2%80%9399.7_rule):
In my $CLAC_WORDS file:

withinsigma "2 0.5 ^ / erf"

In clac:

> 1 withinsigma
= 0.682689492137086
> 2 withinsigma
= 0.954499736103642
> 3 withinsigma
= 0.99730020393674

@soveran soveran merged commit 47bfa8c into soveran:master Nov 17, 2019
@soveran
Copy link
Owner

soveran commented Nov 17, 2019

@waltertross Never too late :-) These contributions are a big improvement for clac. I use it all the time, and I hope you find it useful too now that it's more precise and more complete. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants