* Get the exponential of the complex number * @returns The exponential of the complex number: (exp(a) * cos(b)) + (exp(a) * sin(b))(i)
()
| 139 | * @returns The exponential of the complex number: (exp(a) * cos(b)) + (exp(a) * sin(b))(i) |
| 140 | */ |
| 141 | public exp(): complex |
| 142 | { |
| 143 | return new complex ( |
| 144 | Math.exp(this.real) * Math.cos(this.img), Math.exp(this.real) * Math.sin(this.img)); |
| 145 | } |
| 146 | |
| 147 | /** |
| 148 | * Get the natural base e log of the complex number |