Hi:
The output of sympy.ccode(1+sympy.I) is '1+I'
However, in c++14 mode, like g++ -std=c++14 source.cpp, the g++ compiler does not think I is the imaginary unit.
But in the
http://en.cppreference.com/w/cpp/numeric/complex, I know that after
using namespace std::complex_literals;
I can use 1i to represent the imaginary unit.
So how to tell ccode not to convert sympy.I into I but 1i?
I just know that there just exists ccode to convert sympy expression into c code. But I can not find any cppcode to convert sympy expression into c++ code.