[GiNaC-list] How can I get a GiNaC::ex's name

Zhongxing Xu xuzhongxing at gmail.com
Thu May 24 12:46:49 CEST 2007


Hello,

Say I construct an ex by:
GiNaC::ex E(GiNaC::symbol("abc"));

How can I get back "abc" from E as a C++ string or char*?

Now I do this by print the ex to a std::ostringstream, and get the string
from the ostringstream.

Thanks.

-- Zhongxing Xu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cebix.net/pipermail/ginac-list/attachments/20070524/f04a7753/attachment.html


More information about the GiNaC-list mailing list