Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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.

Files for complex, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size complex-0.2.0-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size complex-0.2.0.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page