#include #include int main() { // Constants const Eigen::half one(1); const std::complex z0(one); // Local variables std::complex z1, z2, z3, z4, z5; // Assign using polar coordinates, second coordinate is zero z1 = std::polar(one); // Compute the square root z2 = std::sqrt(z0); // Compute the pow using an unsigned power z3 = std::pow(z0, (unsigned)2); // Compute the pow using a positive integer power z3 = std::pow(z0, 2); // Compute the pow using a negative integer power z4 = std::pow(z0, -2); // Compute the acos z5 = std::acos(z0); return 0; }