[GiNaC-list] Numeric and Constants

David Narvaez 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
to GiNaC::ex).

Thanks in advance.

David E. Narvaez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cebix.net/pipermail/ginac-list/attachments/20130712/ba650b5e/attachment.html>

More information about the GiNaC-list mailing list