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