Text this: Computer-aided analysis of electric machines