public static ComplexNumber multiply(ComplexNumber number1, ComplexNumber number2) { return(new ComplexNumber((number1.x * number2.x) - (number1.y * number2.y), (number1.x * number2.y) * (number2.x * number1.y))); }
public static ComplexNumber substract(ComplexNumber number1, ComplexNumber number2) { return(new ComplexNumber(number1.x - number2.x, number1.y - number2.y)); }
void printFormula(ComplexNumber complex1, ComplexNumber complex2, ComplexNumber complex3) { labelFormula.Text = "Модуль числа X: " + ((ComplexNumber.pow(complex1, 4)) + ((complex1 - complex2) / (complex3 * complex1))).getComplexModule(); }
public static ComplexNumber add(ComplexNumber number1, ComplexNumber number2) { return(new ComplexNumber(number1.x + number2.x, number1.y + number2.y)); }
void printResults(ComplexNumber complex) { labelModule.Text = "Модуль: " + complex.getComplexModule(); labelImagNum.Text = "Комплексная запись: " + complex; }