Socket
Socket
Sign inDemoInstall

complexo

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    complexo

Simple complex numbers arithmetic operations


Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Install size
8.42 kB
Created
Weekly downloads
 

Readme

Source

Complexo

Simple complex numbers arithmetic operations.

Installation

Via npm on Node:

npm install complexo

Usage

Reference in your program:

var cx = require('complexo');

Usage

// create number 3 + 4i
var cnumber = cx.complex(3, 4);
// toString
cnumber.toString(); // "3 + 4i"
// inverse
cnumber.inv();
// add to cnumber
var newcnumber = cnumber.add(cnumber2);
// subtract cnumber
newcnumber = cnumber.sub(cnumber2);
// multiply cnumber
newcnumber = cnumber.mult(cnumber2);
// divide cnumber
newcnumber = cnumber.div(cnumber2);
// conjugate
newcnumber = cnumber.conj();

Development

git clone git://github.com/ajlopez/Complexo.git
cd Complexo
npm install
npm test

Versions

  • 0.0.1 Published
  • 0.0.2 Published, using complex factory function

Samples

TBD

License

MIT

Contribution

Feel free to file issues and submit pull requests � contributions are welcome<

If you submit a pull request, please be sure to add or update corresponding test cases, and ensure that npm test continues to pass.

Keywords

FAQs

Last updated on 06 Aug 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc