public class ComplexNumber extends Object implements Serializable
| Constructor and Description |
|---|
ComplexNumber(double r,
double i) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ComplexNumber other) |
void |
divide(ComplexNumber other) |
boolean |
equals(Object obj) |
int |
hashCode() |
double |
Magnitude() |
void |
multiply(ComplexNumber other) |
void |
subtract(ComplexNumber other) |
String |
toString() |
public double Magnitude()
public void add(ComplexNumber other)
public void subtract(ComplexNumber other)
public void multiply(ComplexNumber other)
public void divide(ComplexNumber other)
Copyright © 2017. All Rights Reserved.