Pulsewidth modulation based on real-time solution of algebraic harmonic elimination equations | Synapse