Advertisement
Guest User

Main

a guest
Apr 24th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. #include <stdio.h>
  4.  
  5. #include <math.h>
  6.  
  7. #include "Header.h"
  8.  
  9. using namespace std;
  10.  
  11. int main()
  12.  
  13. {
  14.  
  15.     Fcomplex <double> S (1.35.);
  16.  
  17.     Fcomplex <double> P(1., 3.);
  18.  
  19.     cout << P + S <<endl;
  20.  
  21.     cout << S * P << endl;
  22.  
  23.     P+=P;
  24.  
  25.     S*=S;
  26.    
  27.     cout << S << " " << P << " " << P.cabs() << " " << S.conj() << endl;
  28.  
  29.     system("pause");
  30.  
  31.     return(0);
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement