(complex)
| 1992 | return this |
| 1993 | } |
| 1994 | minus(complex) { |
| 1995 | if (!complex.isComplex) { |
| 1996 | throw "[TheoremJS]: Complex operation require complex numbers" |
| 1997 | } |
| 1998 | this.a = this.a.minus(complex.a) |
| 1999 | this.b = this.b.minus(complex.b) |
| 2000 | return this |
| 2001 | } |
| 2002 | negated() { |
| 2003 | this.a = this.a.negated() |
| 2004 | this.b = this.b.negated() |