These are chat archives for symengine/symengine

9th
Nov 2016
Shikhar Jaiswal
@ShikharJ
Nov 09 2016 14:19
CWRAPPER_OUTPUT_TYPE complex_double_get(double _Complex d, basic s)
{
    CWRAPPER_BEGIN
    SYMENGINE_ASSERT(is_a<ComplexDouble>(*(s->m)));
    auto i = (rcp_static_cast<const ComplexDouble>(s->m))->as_complex_double();
    d = i.imag()*_Complex_I;
    d += i.real();
    CWRAPPER_END
}
@isuruf For the Issue 1088 (Feature 3), I am trying to implement the above function, however, the macro _Complex_I is giving out the error "Invalid Suffix on Floating Constant". I can't think of a way to proceed further. A little help?