Пример #1
0
 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)));
 }
Пример #2
0
 public static ComplexNumber substract(ComplexNumber number1, ComplexNumber number2)
 {
     return(new ComplexNumber(number1.x - number2.x, number1.y - number2.y));
 }
Пример #3
0
 void printFormula(ComplexNumber complex1, ComplexNumber complex2, ComplexNumber complex3)
 {
     labelFormula.Text = "Модуль числа X: " + ((ComplexNumber.pow(complex1, 4)) + ((complex1 - complex2) / (complex3 * complex1))).getComplexModule();
 }
Пример #4
0
 public static ComplexNumber add(ComplexNumber number1, ComplexNumber number2)
 {
     return(new ComplexNumber(number1.x + number2.x, number1.y + number2.y));
 }
Пример #5
0
 void printResults(ComplexNumber complex)
 {
     labelModule.Text  = "Модуль: " + complex.getComplexModule();
     labelImagNum.Text = "Комплексная запись: " + complex;
 }