how to perform complex number operations