Skip to main content

Compute complex numbers operations such as addition, substraction, multiplication , division, modulus, conjugate and angle.

Project description

Downloads Downloads Downloads

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_dkydky.united@gmail.com

Distributed under the MIT license. See LICENSE for more information.

https://github.com/deepak7376/complex/blob/master/LICENSE

Contributing

  1. Fork it (https://github.com/deepak7376/complex/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. 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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

complex-0.2.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for complex-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8c41f9bb138eb8f0e8783d36dc4d45dcb68135ad309c07d46597c59868c9dc09
MD5 e74be5595a131fee91895ca19bf0a4da
BLAKE2b-256 f0bf40994bdb0cbcaa738676d8931a0b212ab1f2d37566b95ed030e25ad588d1

See more details on using hashes here.

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

Hashes for complex-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 605cd66cb0e26a5ec8ef5e56e2bd6c8a2e75d95c6ce104966c34f28b1814c66d
MD5 6a507468e89dcbc26c2d3847ba93e579
BLAKE2b-256 0089ed65091e24dd31195b0103093a1498040fd6c37232c9bce2b921f25313cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page