Calculations and Programs for Power System Networks