|
Bus Admittance Matrix 1
implement bus admittance matrix using matlab, java and python
|
Public Member Functions | |
| Complex (double real, double imaginary) | |
| Complex | add (Complex other) |
| Complex | subtract (Complex other) |
| Complex | multiply (Complex other) |
| Complex | reciprocal () |
| Complex | negate () |
| Complex | conjugate () |
| Complex | divide (Complex other) |
| String | toString () |
| Complex (float real, float imaginary) | |
| float | getReal () |
| float | getImag () |
| Complex | add (Complex other) |
| Complex | subtract (Complex other) |
| Complex | multiply (Complex other) |
| Complex | reciprocal () |
| Complex | negate () |
| Complex | divide (Complex other) |
| String | toString () |
| Complex (float real, float imaginary) | |
| float | getReal () |
| float | getImag () |
| Complex | add (Complex other) |
| Complex | subtract (Complex other) |
| Complex | multiply (Complex other) |
| Complex | reciprocal () |
| Complex | negate () |
| Complex | divide (Complex other) |
| String | toString () |
Static Public Member Functions | |
| static Complex | fromString (String s) |
| static Complex | fromString (String s) |
| static int | findMax (int[] array) |
| static Complex | fromString (String s) |
| static int | findMax (int[] array) |
Public Attributes | |
| double | real |
| double | imaginary |
Private Attributes | |
| float | real |
| float | imaginary |
This class defines utility functions for handling complex numbers. Functions:
Complex(float, float): The constructorgetReal(), getImag(): the getter functionsfromString(String): Creates a complex number based on the input string | Complex.Complex | ( | double | real, |
| double | imaginary | ||
| ) |
| Complex.Complex | ( | float | real, |
| float | imaginary | ||
| ) |
Constructor of complex class.
| real | Real part of the complex number. |
| imaginary | Imaginary part of the complex number. |
| Complex.Complex | ( | float | real, |
| float | imaginary | ||
| ) |
Constructor of complex class.
| real | Real part of the complex number. |
| imaginary | Imaginary part of the complex number. |
Adds this complex number to another.
| other | the complex number to add. |
Adds this complex number to another.
| other | the complex number to add. |
| Complex Complex.conjugate | ( | ) |
Divides this complex number by another.
| other | the complex number to divide by. |
Divides this complex number by another.
| other | the complex number to divide by. |
|
static |
Finds the maximum number in the array.
| array | the array to find the maximum number in. |
|
static |
Finds the maximum number in the array.
| array | the array to find the maximum number in. |
|
static |
|
static |
Creates an object of complex class using the input string. The input string should be in the form a+bj where 'a' and 'b' are floats.
| s | Input string of the form a+bj. |
| IllegalArgumentException | if the input string is not in the correct format. |
|
static |
Creates an object of complex class using the input string. The input string should be in the form a+bj where 'a' and 'b' are floats.
| s | Input string of the form a+bj. |
| IllegalArgumentException | if the input string is not in the correct format. |
| float Complex.getImag | ( | ) |
Returns the imaginary part of the complex number. Complex#imaginary
| float Complex.getImag | ( | ) |
Returns the imaginary part of the complex number. Complex#imaginary
| float Complex.getReal | ( | ) |
Returns the real part of the complex number. Complex#real
| float Complex.getReal | ( | ) |
Returns the real part of the complex number. Complex#real
Multiplies this complex number by another.
| other | the complex number to multiply by. |
Multiplies this complex number by another.
| other | the complex number to multiply by. |
| Complex Complex.negate | ( | ) |
| Complex Complex.negate | ( | ) |
Negates this complex number.
| Complex Complex.negate | ( | ) |
Negates this complex number.
| Complex Complex.reciprocal | ( | ) |
| Complex Complex.reciprocal | ( | ) |
Calculates the reciprocal of this complex number.
| Complex Complex.reciprocal | ( | ) |
Calculates the reciprocal of this complex number.
Subtracts another complex number from this one.
| other | the complex number to subtract. |
Subtracts another complex number from this one.
| other | the complex number to subtract. |
| String Complex.toString | ( | ) |
| String Complex.toString | ( | ) |
Returns the string form of the complex number
| String Complex.toString | ( | ) |
Returns the string form of the complex number
| float Complex.imaginary |
Imaginary part of the complex number
|
private |
Imaginary part of the complex number
| float Complex.real |
Real part of the complex number
|
private |
Real part of the complex number