Fenrir112

%u041A%u043E%u043C%u043F%u043B%u0435%u043A%u0441%u043D%u044B%u0435 %u0447%u0438%u0441%u043B%u0430

Dec 9th, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.95 KB | None | 0 0
  1. type
  2.   Cmplex = record
  3.     Re     : extended;
  4.     Im     : extended;
  5.   end;
  6.   Complex = class
  7.    private
  8.  
  9.    public
  10.     Function CAdd(const A,B:Cmplex):Cmplex; { комплексное сложение }
  11.     Function CSub(const A,B:Cmplex):Cmplex; { комплексное вычитание }
  12.     Function CMul(const A,B:Cmplex):Cmplex; { комплексное умножение }
  13.     Function CDiv(const A,B:Cmplex):Cmplex; { комплексное деление }
  14.     Function CNeg(const A:Cmplex):Cmplex; { отрицание комплексного числа }
  15.     Function C1(const A:Cmplex):Cmplex; { обратное комплексное число }
  16.     Function CCmplx(const A:Cmplex):Cmplex; { сопряженное комплексное число: a-i*b }
  17.     Function ToComplex(R,I:extended):Complex; { преобразование двух реальных чисел в комлексное}
  18.     constructor Create(A:extended;B:extended);
  19.   end;
Advertisement
Add Comment
Please, Sign In to add comment