Equivalent of evalf for numeric (for fractions)

Eduardo M Kalinowski ekalin at iname.com
Mon Dec 4 20:47:38 CET 2000


Hi again,

    How can I convert a GiNaC::numeric that contains a fraction (or even
a integer, for that matter) into a numeric with the real representation
of the fraction? Currently I'm adding "0.0" to the numeric to force it
into a real number. This works, but is ugly. How about an "evalf"
function for GiNaC::numeric?

--
I'm always looking for a new idea that will be more productive than its cost.
                -- David Rockefeller

Eduardo M Kalinowski     (ekalin at iname.com)
http://move.to/hpkb      http://cami-ufpr.hpg.com.br




-
To UNSUBSCRIBE, email to ginac-list at ginac.de with a subject of "unsubscribe".



More information about the GiNaC-list mailing list