Mathematical operations with complex numbers