Skip to content

Latest commit

 

History

History
24 lines (24 loc) · 2.07 KB

README.md

File metadata and controls

24 lines (24 loc) · 2.07 KB

Complex-Number-Operation

JavaScript module providing comprehensive suite of functions for complex number operations customized for Electrical Power Networks.

Here's a breakdown:

  • Constants: Defined constants like,I,I,II, etc., which are complex numbers with real and imaginary parts.

  • Conversion Functions: convertToPolar and convertToCartesian for converting complex numbers between Cartesian and polar forms.

  • Arithmetic Operations: Implemented functions like complexDivision, complexInverse, complexMultiplication, complexAdd, and complexSub for complex arithmetic.

  • Multi-input Operations: complexMultiplication3, complexAdd3, and complexAdd4 extend the basic operations to handle multiple complex numbers.

  • Matrix Operations: multiplyMatrices and inverseMatrix handle matrix multiplications and inversions.

  • PI_to_Y and Seq_012: Special functions to perform specific complex number calculations, in electrical engineering contexts, such as converting impedances from Pi to Y configuration and calculating sequence components.

Overall, the code is designed to be a comprehensive library for handling complex numbers, especially useful in fields of electrical engineering.