q60 / complex

Elixir library implementing complex numbers and math.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qcomplex

Elixir library implementing complex numbers and math.

The library adds new type of t:complex/0 numbers and basic math operations for them. Complex numbers can also interact with integers and floats. Actually this library expands existing functions, so they can work with complex numbers too. Number operations available:

  • addition
  • subtraction
  • multiplication
  • division
  • exponentiation
  • absolute value
  • trigonometric functions

Installation

qcomplex is available in Hex and can be installed by adding qcomplex to your list of dependencies in mix.exs:

def deps do
  [
    {:complex, "~> 0.1.0", hex: :qcomplex}
  ]
end

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

About

Elixir library implementing complex numbers and math.

License:MIT License


Languages

Language:Elixir 100.0%