* Get the tangent of the complex number * @returns The tangent of the complex number
()
| 178 | * @returns The tangent of the complex number |
| 179 | */ |
| 180 | public tan(): complex |
| 181 | { |
| 182 | // defined in terms of the identity tan(z) = sin(z) / cos(z) |
| 183 | let num = this.sin(); |
| 184 | let denom = this.cos(); |
| 185 | return num.div(denom); |
| 186 | } |
| 187 | |
| 188 | /** |
| 189 | * Static method to construct a complex number in rectangular form from polar coordinates |