Text this: Transient analysis of alternating-current machinery