Skip to content
/ rational Public

Elixir library implementing rational numbers and math.

License

Notifications You must be signed in to change notification settings

q60/rational

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 and can be installed by adding qrational to your list of dependencies in mix.exs:

def deps do
  [
    {:rational, "1.3.2", hex: :qrational}
  ]
end

The docs can be found at https://hexdocs.pm/qrational.

About

Elixir library implementing rational numbers and math.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages