()
| 1927 | return this.a.eq(complex.a) && this.b.eq(complex.b) |
| 1928 | } |
| 1929 | exp() { |
| 1930 | const a = this.a |
| 1931 | const b = this.b |
| 1932 | |
| 1933 | const ea = this.t.exp(a) |
| 1934 | const cos = this.t.cos(b) |
| 1935 | const sin = this.t.sin(b) |
| 1936 | |
| 1937 | const re = ea.times(cos) |
| 1938 | const im = ea.times(sin) |
| 1939 | |
| 1940 | this.a = re |
| 1941 | this.b = im |
| 1942 | |
| 1943 | return this |
| 1944 | } |
| 1945 | get isComplex() { |
| 1946 | return true |
| 1947 | } |