Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/q60/complex
Elixir library implementing complex numbers and math.
https://github.com/q60/complex
Last synced: 29 days ago
JSON representation
Elixir library implementing complex numbers and math.
- Host: GitHub
- URL: https://github.com/q60/complex
- Owner: q60
- License: mit
- Created: 2022-08-21T19:12:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-22T11:58:42.000Z (about 2 years ago)
- Last Synced: 2024-10-07T12:11:37.231Z (about 1 month ago)
- Language: Elixir
- Size: 9.77 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-elixir - qcomplex - Elixir library implementing complex numbers and math operations for them. (Algorithms and Data structures)
README
# 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](https://hex.pm/packages/qcomplex) and can be installed by adding `qcomplex` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:complex, "~> 0.1.0", hex: :qcomplex}
]
end
```The docs can be found at .