* Get the magnitude(absolute value) of the complex number * @returns The magnitude: sqroot(a^2 + b^2)
()
| 102 | * @returns The magnitude: sqroot(a^2 + b^2) |
| 103 | */ |
| 104 | public mag(): number |
| 105 | { |
| 106 | return Math.sqrt((this.real * this.real) + (this.img * this.img)); |
| 107 | } |
| 108 | |
| 109 | /** |
| 110 | * Get the conjugate of the complex number |