Hi all, I got a problem with the csrc_cl_N output format, for example, ex expr = pow(1+x(0),-6); expr.print(print_csrc_cl_N(cout)); I got an output as expt( x(0)+1, (--6)) and it seems that "--" should be only one "-". so is it normal or a bug?
Hi, On 04.04.19 08:05, Feng Feng wrote:
Hi all, I got a problem with the csrc_cl_N output format, for example,
ex expr = pow(1+x(0),-6);
expr.print(print_csrc_cl_N(cout));
I got an output as
expt( x(0)+1, (--6))
and it seems that "--" should be only one "-".
so is it normal or a bug?
Clearly a bug. I've pushed a fix to git. Thanks for reporting this! -richy. PS: In the future, when reporting bugs in GiNaC or in other open source projects, please send in complete test programs. This makes it easier for developers.
participants (2)
-
Feng Feng
-
Richard B. Kreckel