Курсовая работа: Реализация класса для работы с комплексными числами
cout << "Chasnoe: " << re << " + " << im << "i" << endl;
double f1=sqrt(re*re+im*im);
double f2=re/f1;
double f3=im/f1;
cout << "Trigonom chastnoe" << endl;
cout << f1 << "(cos(" << f2 << ") + isin(" << f3 << "))" << endl;
Complex t(re,im);
return t;
}
}
Complex operator &(Complex &a, Complex &b){
int n;
cout << "Vvedite chislo stepeni:" << endl;
cin >> n;
double r=sqrt(a.re*a.re+a.im*a.im);
double rn=pow(2,r);
double f2=n*a.re/rn;
double f3=n*a.im/rn;
cout << "Trigonom form vozvedenie v stepen' a:" << endl;
cout << rn << "(cos(" << f2 << ") + isin(" << f3 << "))" << endl;
Complex t(n,rn);
return t;
}
Complex operator &&(Complex &a,Complex &b){
int m;
int k;
cout << "Vvedite chislo ctepeni korny:" << endl;
cin >> m;
cout << "Vvedite nomer korny:" << endl;