cln::notreached_exception
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?
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?
On Mon, 4 Jan 2021 21:39:19 +0100, Dario Pellegrini <pellegrini.dario@gmail.com> said:
DP> Oh my bad, I forgot to evalf() Quite a misleading exception DP> message. I would agree with you I was mislead by it several times myself. -- Vladimir V. Kisil http://www.maths.leeds.ac.uk/~kisilv/ Book: Geometry of Mobius Maps https://doi.org/10.1142/p835 Soft: Geometry of cycles http://moebinv.sourceforge.net/ Jupyter notebooks: https://github.com/vvkisil/MoebInv-notebooks
participants (2)
-
Dario Pellegrini
-
Vladimir V. Kisil