// calculate the ABCD matrix - ideal line
public ComplexMatrix getIdealABCDmatrix(){
if(this.segmentLength==-1)throw new IllegalArgumentException("No distance along the line as been entered");
this.idealABCDmatrix = new ComplexMatrix(2,2);
double betal = this.getIdealPhaseConstant()*this.segmentLength;
double zed0 = this.getIdealCharacteristicImpedanceAsReal();
this.idealABCDmatrix.setElement(0, 0, new Complex(Math.cos(betal), 0.0D));
this.idealABCDmatrix.setElement(0, 1, new Complex(0.0D, Math.sin(betal)*zed0));
this.idealABCDmatrix.setElement(1, 0, new Complex(0.0D, Math.sin(betal)/zed0));