This is a function that can be called by various programs. The function can be represent by the statement
Where 'yb' and 'ych' are respectively the Ybus matrix and a matrix containing the line charging admittances.the matrix that contains line impedances is 'zz', while 'ych' contains the line charging information. This program is stored in the file ybus.m.