• Home
  • Raw
  • Download

Lines Matching refs:std

19     std::cout << std::setprecision(std::numeric_limits<typename Complex::value_type>::digits10);  in complex_number_examples()
20 std::cout << std::scientific << std::fixed; in complex_number_examples()
21 std::cout << "Print a complex number: " << z1 << std::endl; in complex_number_examples()
22 std::cout << "Square it : " << z1*z1 << std::endl; in complex_number_examples()
23 std::cout << "Real part : " << z1.real() << " = " << real(z1) << std::endl; in complex_number_examples()
24 std::cout << "Imaginary part : " << z1.imag() << " = " << imag(z1) << std::endl; in complex_number_examples()
25 using std::abs; in complex_number_examples()
26 std::cout << "Absolute value : " << abs(z1) << std::endl; in complex_number_examples()
27 std::cout << "Argument : " << arg(z1) << std::endl; in complex_number_examples()
28 std::cout << "Norm : " << norm(z1) << std::endl; in complex_number_examples()
29 std::cout << "Complex conjugate : " << conj(z1) << std::endl; in complex_number_examples()
30 std::cout << "Projection onto Riemann sphere: " << proj(z1) << std::endl; in complex_number_examples()
33 using std::polar; in complex_number_examples()
34 std::cout << "Polar coordinates (phase = 0) : " << polar(r) << std::endl; in complex_number_examples()
35 std::cout << "Polar coordinates (phase !=0) : " << polar(r, theta) << std::endl; in complex_number_examples()
37 std::cout << "\nElementary special functions:\n"; in complex_number_examples()
38 using std::exp; in complex_number_examples()
39 std::cout << "exp(z1) = " << exp(z1) << std::endl; in complex_number_examples()
40 using std::log; in complex_number_examples()
41 std::cout << "log(z1) = " << log(z1) << std::endl; in complex_number_examples()
42 using std::log10; in complex_number_examples()
43 std::cout << "log10(z1) = " << log10(z1) << std::endl; in complex_number_examples()
44 using std::pow; in complex_number_examples()
45 std::cout << "pow(z1, z1) = " << pow(z1, z1) << std::endl; in complex_number_examples()
46 using std::sqrt; in complex_number_examples()
47 std::cout << "Take its square root : " << sqrt(z1) << std::endl; in complex_number_examples()
48 using std::sin; in complex_number_examples()
49 std::cout << "sin(z1) = " << sin(z1) << std::endl; in complex_number_examples()
50 using std::cos; in complex_number_examples()
51 std::cout << "cos(z1) = " << cos(z1) << std::endl; in complex_number_examples()
52 using std::tan; in complex_number_examples()
53 std::cout << "tan(z1) = " << tan(z1) << std::endl; in complex_number_examples()
54 using std::asin; in complex_number_examples()
55 std::cout << "asin(z1) = " << asin(z1) << std::endl; in complex_number_examples()
56 using std::acos; in complex_number_examples()
57 std::cout << "acos(z1) = " << acos(z1) << std::endl; in complex_number_examples()
58 using std::atan; in complex_number_examples()
59 std::cout << "atan(z1) = " << atan(z1) << std::endl; in complex_number_examples()
60 using std::sinh; in complex_number_examples()
61 std::cout << "sinh(z1) = " << sinh(z1) << std::endl; in complex_number_examples()
62 using std::cosh; in complex_number_examples()
63 std::cout << "cosh(z1) = " << cosh(z1) << std::endl; in complex_number_examples()
64 using std::tanh; in complex_number_examples()
65 std::cout << "tanh(z1) = " << tanh(z1) << std::endl; in complex_number_examples()
66 using std::asinh; in complex_number_examples()
67 std::cout << "asinh(z1) = " << asinh(z1) << std::endl; in complex_number_examples()
68 using std::acosh; in complex_number_examples()
69 std::cout << "acosh(z1) = " << acosh(z1) << std::endl; in complex_number_examples()
70 using std::atanh; in complex_number_examples()
71 std::cout << "atanh(z1) = " << atanh(z1) << std::endl; in complex_number_examples()
76 std::cout << "First, some operations we usually perform with std::complex:\n"; in main()
77 complex_number_examples<std::complex<double>>(); in main()
78 std::cout << "\nNow the same operations performed using quad precision complex numbers:\n"; in main()