Switch to library for complex arithmetic