(complex)
| 1921 | return this.eq(...arguments) |
| 1922 | } |
| 1923 | eq(complex) { |
| 1924 | if (!complex.isComplex) { |
| 1925 | throw "[TheoremJS]: Complex operation require complex numbers" |
| 1926 | } |
| 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 |