Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

complexo

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

complexo

Simple complex numbers arithmetic operations

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 06 Aug 2017

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc