【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.3.12 Re
Contents
Name
Re
Declaration
#define Re(_CC) (_CC.m_re)
Remark
returns the real part of the complex value.
Parameters
- _CC
- the complex value.
Return
the real part
Examples
EX1
void run_complex_Re() { complex cc(4.5, 7.8); // Display the real part: out_double("real part = ", Re(cc)); // shoulde be 4.5 }
Header to Include
origin.h