Oh my bad, I forgot to evalf() Quite a misleading exception message. Sorry for the noise anyway. Il giorno lun 4 gen 2021 alle ore 20:53 Dario Pellegrini < pellegrini.dario@gmail.com> ha scritto:
I am on v1.8.0, I have no experience with older versions. This trivial program results in a cln::notreached_exception being thrown.
#include <ginac/ginac.h>
int main() { GiNaC::ex a = GiNaC::Pi; GiNaC::ex b = 1; std::cout << GiNaC::ex_to<GiNaC::numeric>(a+b).to_double() << std::endl; return 0; }
Compiled with:
g++ test.cpp -lginac -lcln
Here is the full exception message:
what(): Internal error: statement in file real/conv/cl_R_to_double.cc,
line 48 has been reached!! Please send the authors of the program a description how you produced this error!
I would expect that to work, am I wrong?