[GiNaC-list] get_name() doesn't returned a name like "symbolNNN"?

Warren Weckesser warren.weckesser at gmail.com
Sat Aug 28 21:43:15 CEST 2010


Hi,

According to the documentation (section 4.5 of the online tutorial), the
following code should produce something like

z.get_name() = "symbol1"

but with ginac 1.5.8, I get an empty string.

-----
#include <iostream>
#include <ginac/ginac.h>
using namespace std;
using namespace GiNaC;

int main()
{
    symbol z;
    cout << "z.get_name() = \"" << z.get_name() << "\"" << endl;
    return 0;
}
-----

In an older version of ginac, this used to work as documented.  Is this a
bug, or an expected change in behavior? (Or is it just my installation that
is broken?)

Regards,

Warren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cebix.net/pipermail/ginac-list/attachments/20100828/c8db022e/attachment.html>


More information about the GiNaC-list mailing list