You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

complex

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

complex

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


Maintainers
1

Readme

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc