A complex number has a real part and an imaginary part and is represented as
real-part + imaginary-part x i, where i is .
If the class Complex, which represents complex numbers, has two double data fields—real and imaginary—define the boolean-valued method isZero that detects whether the two fields of a Complex object are both zero.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here