folz / math

The missing Math module for Elixir.
https://hex.pm/packages/math
Other
104 stars 12 forks source link

Many new functions #2

Closed Qqwy closed 8 years ago

Qqwy commented 8 years ago

I have added factorial/1, nth_sqrt/2, k_permutations/2, k_combinations/2, gcd/2, lcm/2. There are also functions to work with Enumerables that are contained in Math.Enum ( product/1, mean/1 and median/1).

Documentation has also be improved, and the README.md was edited to list the functionality included in this package.

All new functions have doctests, and some tests for the hyperbolic trigonometry-functions have been added.

Functions have been re-ordered to be grouped in a logical fashion. This might make the source and the documentation more readable.

I have taken the liberty to increase the version number from 0.1.0 to 0.2.0 (and reflected this change in the README.md as well). If you do not like that, I'll change it, of course :wink: .

As always, if there are any other problems or questions you have about my Pull Requests, feel free to ask them! :-)

Have a nice day,

~Qqwy/WM

folz commented 8 years ago

This looks great! Merged. I also added you as a contributor to the repository so you don't need to wait on me for future PRs.