Socket
Socket
Sign inDemoInstall

@rayyamhk/complex

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

5

package.json
{
"name": "@rayyamhk/complex",
"version": "1.0.1",
"version": "1.0.2",
"author": "Ray Yam",

@@ -29,3 +29,3 @@ "contributors": [

"build": "npm run test && babel lib --out-dir build --ignore **/*.test.js",
"test": "eslint lib/** && jest --testPathPattern=lib/tests"
"test": "eslint && jest --testPathPattern=lib/tests"
},

@@ -47,2 +47,3 @@ "husky": {

"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jest": "^23.20.0",
"husky": "^4.2.5",

@@ -49,0 +50,0 @@ "jest": "^26.2.2"

34

README.md

@@ -26,3 +26,27 @@ # Complex.js

## API
- [constructor](#constructorre-im)
- [Constant](#constant)
- [Complex.NaN](#complexnan)
- [Complex.ONE](#complexone)
- [Complex.ZERO](#complexzero)
- [Complex.PI](#complexpi)
- [Complex.E](#complexe)
- [Complex.EPSILON](#complexepsilon)
- [Instance methods](#instance-methods)
- [getReal](#getreal)
- [getImaginary](#getimaginary)
- [getModulus](#getmodulus)
- [getArgument](#getargument)
- [toString](#tostring)
- [Static methods](#static-methods)
- [isNaN](#isnannum)
- [isEqual](#isequalnum1-num2-digit--15)
- [add | subtract | multiply | divide](#4-basic-operations)
- [conjugate](#conjugatenum)
- [inverse](#inversenum)
- [pow](#powbase-exponent)
- [exp](#expnum)
- [log](#lognum)
- [sin | cos | tan | csc | sec | cot](#6-trigonometric-functions)
- [asin | acos | atan | acsc | asec | acot](#6-inverse-of-trigonometric-functions)
### constructor(re, im)

@@ -107,3 +131,3 @@ ```

```
new Complex(3, 4).getModulus(); // 5
new Complex(3, 3).getArgument(); // π/4
Complex.ZERO.getArgument(); // undefined

@@ -273,5 +297,5 @@ ```

Complex.atan(num); // Domain: entire complex plane C except the set { i, -i }
Complex.csc(num); // Domain: entire complex plane C except the set { 0 }
Complex.sec(num); // Domain: entire complex plane C except the set { 0 }
Complex.cot(num); // Domain: entire complex plane C except the set { i, -i , 0 }
Complex.acsc(num); // Domain: entire complex plane C except the set { 0 }
Complex.asec(num); // Domain: entire complex plane C except the set { 0 }
Complex.acot(num); // Domain: entire complex plane C except the set { i, -i , 0 }
```

@@ -278,0 +302,0 @@

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