* Get the complex number's polar coordinates as a tuple * @returns A tuple containing the arguement/angle of the complex number as the 1st element, and * the magnitude as the 2nd
()
| 203 | * the magnitude as the 2nd |
| 204 | */ |
| 205 | public toPolar(): [number, number] |
| 206 | { |
| 207 | let mag = this.mag(); |
| 208 | let theta = this.arg(); |
| 209 | return [theta, mag]; |
| 210 | } |
| 211 | |
| 212 | /** |
| 213 | * Get the complex number as a string |