Tutorials
Benchmarks
Contents
Gets the real component x.
x
Parameters
const Complex &z A complex number.
A complex number.
Returns
double A real number.
A real number.
Gets the real component of a complex object.
Example
Complex z(1, 4); std::cout << real(z) << "\n";
Output:
1