Socket
Socket
Sign inDemoInstall

complex-calculate

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    complex-calculate

A module is designed for computing complex number


Version published
Weekly downloads
8
increased by700%
Maintainers
1
Install size
3.00 kB
Created
Weekly downloads
 

Readme

Source

complex-calculate -- A module is designed for computing complex number.

Introduction

npm install complex-calculate

##Use complex-calculate

file:complex-test.js

var Com = require('complex-calculate')
var a = new Com(4, 1)
var b = new Com(2, 1)

console.log('a=%s', a)
console.log('b=%s', b)
console.log('a.add(b)=%s', a.add(b))
console.log('a.sub(b)=%s', a.sub(b))
console.log('a.mul(b)=%s', a.mul(b))
console.log('a.div(b)=%s', a.div(b))

Keywords

FAQs

Last updated on 03 May 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