phasop
Command-line tools for complex numbers (phasor) operations.
This CLI-Tool enables fast polar and rectangular operations. By definition polar points are defined like (modulus, radius) and rectangular points are defined like (x, yi) where i letter is mandatory; and in this README any (modulus, radius) or (x, yi) are know as matrix.
Installation
> npm install -g phasop
Make sure to include the -g option
Usage
Converting Polar phasor to Retangular phasor:
> phasop
> polar form> rectangular form
radian
You can output any of the following operations in radians instead of the default degrees.
> phasop -r add
> + > polar form> rectangular form
endless
You can also input several matrix for a single operation
> phasop -r add
> + + > polar form> rectangular form
Operations
add
> phasop add
> + > polar form> rectangular form
sub
> phasop sub
> - > polar form> rectangular form
mult
> phasop mult
> * > polar form> rectangular form
div
> phasop div
> / > polar form> rectangular form
Dependencies
commander
License
MIT