// Voltage and current at start of a line segment of length segLen along the line
// given voltage and current at the start of the segment
// output as magnitude and phase
public double[] voltageAndCurrentAsMagnitudeAndPhase(){
Complex[] outputVector = {this.outputVoltage, this.outputCurrent};
ComplexMatrix abcdMatrix = this.getABCDmatrix();
Complex[] inputVector = abcdMatrix.solveLinearSet(outputVector);
double[] input = {inputVector[0].abs(), inputVector[0].arg(), inputVector[1].abs(), inputVector[1].arg()};
return input;
}