complex<X> polar(const X& kxrR, const X& kqrTheta = 0);
#include <complex>
#include <complex> #include <iostream> int main() { using namespace std; // Find the complex number corresponding to (1, pi/6) complex<double> qZ; qZ = polar(1.0, 3.14159/6.0); cout << "Complex Number : "<< qZ << endl; // Keep the window open cin.get(); return 0; }
© 20072024 XoaX.net LLC. All rights reserved.