Subtracts a number from this complex number. @param z The number to be subtracted. @return The difference.
(Complex z)
| 85 | * @return The difference. |
| 86 | */ |
| 87 | public Complex subtract(Complex z) { |
| 88 | Complex temp = new Complex(); |
| 89 | temp.real = this.real - z.real; |
| 90 | temp.img = this.img - z.img; |
| 91 | return temp; |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * Multiplies this complex number by another. |
no outgoing calls