[GiNaC-list] Numeric and Constants
david.narvaez at computer.org
Sat Jul 13 05:37:10 CEST 2013
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
Thanks in advance.
David E. Narvaez
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the GiNaC-list