jostylr / ratcalc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rational Math Calculator

RatCalc is a rational math calculator for Elixir. It is a stand-alone library whose goal is to implement a real-number arithmetic based on rational intervals as replacements for decimals. See Reals as Oracles for the mathematical background for this idea.

Essentially, this implements an arithmetic of fractions which then, when coupled with rational interval representation of real numbers, becomes a real number calculator.

Installation

If available in Hex, the package can be installed by adding ratcalc to your list of dependencies in mix.exs:

def deps do
  [
    {:ratcalc, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ratcalc.

About


Languages

Language:Elixir 100.0%