Compute complex numbers operations such as addition, substraction, multiplication , division, modulus, conjugate and angle.
Project description
Complex
Compute complex numbers operations such as addition, substraction, multiplication , division, modulus, conjugate and angle.
Installation
OS X , Windows & Linux:
pip install complex
Usage example
Use for complex number mathematics
from complex import Complex
x = Complex(2,3)
y = Complex(4,5)
print(x+y, x-y, x*y, x/y, x.mod(), y.mod(), x.angle(), y.angle(), x.conjugate(), y.conjugate(), x.log(), y.log())
Development setup
For local development setup
git clone https://github.com/deepak7376/complex
cd complex
pip install -r requirements.txt
Meta
Deepak Yadav – @imdeepak_dky – dky.united@gmail.com
Distributed under the MIT license. See LICENSE
for more information.
https://github.com/deepak7376/complex/blob/master/LICENSE
Contributing
- Fork it (https://github.com/deepak7376/complex/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
References
None
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
complex-0.2.0.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file complex-0.2.0.tar.gz
.
File metadata
- Download URL: complex-0.2.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c41f9bb138eb8f0e8783d36dc4d45dcb68135ad309c07d46597c59868c9dc09 |
|
MD5 | e74be5595a131fee91895ca19bf0a4da |
|
BLAKE2b-256 | f0bf40994bdb0cbcaa738676d8931a0b212ab1f2d37566b95ed030e25ad588d1 |
File details
Details for the file complex-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: complex-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 605cd66cb0e26a5ec8ef5e56e2bd6c8a2e75d95c6ce104966c34f28b1814c66d |
|
MD5 | 6a507468e89dcbc26c2d3847ba93e579 |
|
BLAKE2b-256 | 0089ed65091e24dd31195b0103093a1498040fd6c37232c9bce2b921f25313cf |