[GiNaC-list] Error on expression

Jean-Michaël Celerier jeanmichael.celerier at gmail.com
Mon Mar 13 23:42:12 CET 2017

The following code produces an error that says that it should be reported :


int main(int argc, char* argv[])
  GiNaC::symtab table;
  table["x"] = 2.34;
  GiNaC::parser p(table);
  GiNaC::ex e = p("2*cos(x)+e^x");
  GiNaC::numeric n = GiNaC::ex_to<GiNaC::numeric>(e);
  double x = GiNaC::ex_to<GiNaC::numeric>(n.evalf()).to_double();
  std::cout << x << std::endl;
  return 0;

The error :
terminate called after throwing an instance of 'cln::notreached_exception'
  what():  Internal error: statement in file real/elem/cl_R_mul.cc, line 93
has been reached!!
Please send the authors of the program a description how you produced this

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cebix.net/pipermail/ginac-list/attachments/20170313/09467af3/attachment.html>

More information about the GiNaC-list mailing list