Hi,
While implementing a GiNaC based backend for my software I decided to
replace doubles by GiNaC::exs. That seemed to work fine until I actually
needed the final native value of the expression, so I changed my mind to
use GiNaC::numerics instead, which works fine except for constants, since
I'm unable to do things like
GiNaC::numeric angle = 2 * GiNaC::Pi;
is there a quick way to pass from a constant to a numeric? (or
alternatively a way to turn expressions into doubles and I should go back
to GiNaC::ex).
Thanks in advance.
David E. Narvaez