https://github.com/q60/rational
Elixir library implementing rational numbers and math.
https://github.com/q60/rational
Last synced: 3 days ago
JSON representation
Elixir library implementing rational numbers and math.
- Host: GitHub
- URL: https://github.com/q60/rational
- Owner: q60
- License: mit
- Created: 2022-08-14T18:38:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-20T18:40:05.000Z (over 2 years ago)
- Last Synced: 2025-03-25T23:37:12.442Z (20 days ago)
- Language: Elixir
- Homepage:
- Size: 15.6 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-elixir - qrational - Elixir library implementing rational numbers and math operations for them. (Algorithms and Data structures)
README
# qrational
Elixir library implementing rational numbers and math.
The library adds new type of rational numbers and basic math operations for them. Rationals can also interact with integers and floats. Actually this library expands existing functions, so they can work with rationals too. Number operations available:
* addition
* subtraction
* multiplication
* division
* exponentiation
* absolute value## Installation
qrational is [available in Hex](https://hex.pm/packages/qrational) and can be installed by adding `qrational` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:rational, "1.3.2", hex: :qrational}
]
end
```The docs can be found at .