2.3.12 Re


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

Reference